473,569 Members | 2,770 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adding a new method will it break existing applications

Hello,

We have a webservice which is called by our pocket pc apps. We have a need
to filter data, so we want to add a another method on top to the existing
method.
Existing Service.asmx
Sync(DataSet myDataset)

New Service.asmx
Sync(DataSet myDataset);
Sync(DataSet myDataset,strin g filter);

If I recompile the app will this break the existing apps.

I posted this under asp.net/webservices and no reply.
Thanks,
-Jay Balapa
Jun 19 '07 #1
2 1405
On Jun 19, 12:38 pm, "Jay Balapa" <jbal...@hotmai l.comwrote:
Hello,

We have a webservice which is called by our pocket pc apps. We have a need
to filter data, so we want to add a another method on top to the existing
method.
Existing Service.asmx
Sync(DataSet myDataset)

New Service.asmx
Sync(DataSet myDataset);
Sync(DataSet myDataset,strin g filter);

If I recompile the app will this break the existing apps.

I posted this under asp.net/webservices and no reply.

Thanks,
-Jay Balapa
I ran into an issue with overloading methods when I first started -
I'm pretty sure it's possible it was caused by something else, but
just FYI.

As long as the new function is working properly and the old function
is not modifying, adding a function to a web service will not break
the service.

Jun 19 '07 #2
"Teresa Church" <tl******@gmail .comwrote in message
news:11******** **************@ o61g2000hsh.goo glegroups.com.. .
On Jun 19, 12:38 pm, "Jay Balapa" <jbal...@hotmai l.comwrote:
>Hello,

We have a webservice which is called by our pocket pc apps. We have a
need
to filter data, so we want to add a another method on top to the existing
method.
Existing Service.asmx
Sync(DataSet myDataset)

New Service.asmx
Sync(DataSet myDataset);
Sync(DataSet myDataset,strin g filter);

If I recompile the app will this break the existing apps.

I posted this under asp.net/webservices and no reply.

Thanks,
-Jay Balapa

I ran into an issue with overloading methods when I first started -
I'm pretty sure it's possible it was caused by something else, but
just FYI.

As long as the new function is working properly and the old function
is not modifying, adding a function to a web service will not break
the service.
You do have to be careful here. Whether it breaks anything depends on what
"anything" is. You are changing the contract, and it's possible you'll find
some client that had a dependency on the old contract, in a way you didn't
expect.

That said, I don't know of a scenario where adding a method will break an
existing Windows client. I do not believe you can use overloading, however.
Give your new function a different name.
--
John Saunders [MVP]
Jun 19 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

31
2897
by: Chris S. | last post by:
Is there a purpose for using trailing and leading double underscores for built-in method names? My impression was that underscores are supposed to imply some sort of pseudo-privatization, but would using myclass.len() instead of myclass.__len__() really cause Python considerable harm? As much as I adore Python, I have to admit, I find this to...
5
2784
by: Paul | last post by:
Hi I have a table that currently has 466 columns and about 700,000 records. Adding a new DEFAULT column to this table takes a long time. It it a lot faster to recreate the table with the new columns and then copy all of the data across. As far as I am aware when you add a DEFAULT column the following happens:
15
12356
by: crjunk | last post by:
I have 4 TextBoxes on my form that I'm trying to add together to get a grand total. Here is the code I'm using: <SCRIPT LANGUAGE="JavaScript"> <!-- Beginning of JavaScript - function calcTotalPub() { var tempFed = +document.Form1.value; var tempState = +document.Form1.value;
8
2932
by: Kevin Little | last post by:
#!/usr/bin/env python ''' I want to dynamically add or replace bound methods in a class. I want the modifications to be immediately effective across all instances, whether created before or after the class was modified. I need this to work for both old ('classic') and new style classes, at both 2.3 and 2.4. I of course want to avoid...
2
7666
by: laredotornado | last post by:
Hello, I am looking for a cross-browser way (Firefox 1+, IE 5.5+) to have my Javascript function execute from the BODY's "onload" method, but if there is already an onload method defined, I would like mine to run immediately after it. So in the code below, what JS would i need to add to my "myfile.inc" page so that I could guarantee this...
7
2345
by: Andy Bates | last post by:
I have hopefully a simple problem in C#. I designed a form with a listview on left, vert splitter against that, then the remainder of the form from top to bottom: a listview, horiz splitter and tab control (very similar to outlook express). I then started coding and realised that I needed to add a ToolBar. When I added this, it didn't...
36
1854
by: danielx | last post by:
At first I was going to post the following: <!-- beginning of my original post --> I just discovered the inspect module, which contains the isfunction and ismethod functions. For some reason, I used to be under the impression that Python methods are no different from Python functions. Naturally, I wondered why both of these needed to...
0
1444
by: AboutJAV | last post by:
I created a crystal report with the report.rpt reportdata.xsd I created the a new dataset with the reportdata myreportdata = new reportdata(); That automatically created a new dataset with all the fields I
11
18096
by: Pete Kane | last post by:
Hi All, does anyone know how to add TabPages of ones own classes at design time ? ideally when adding a new TabControl it would contain tab pages of my own classes, I know you can achieve this with ListView columns so it should be doable, thanks
0
7694
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8118
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7666
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6278
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5504
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2107
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1208
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.