473,785 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Modify service return object without affecting other clients/proxies

Hi,

I have a web service that returns an object, call it myReturn, which
contains information regarding payments, etc.... I have a new
specification, to add a new property to myReturn to handle some extra
calculations (ie. for amortization). However, I have existing clients
with proxies based on the old object definition. How can I make sure
that adding this extra data being sent back doesnt cause the old
clients to blow up?

I can provide some code samples if that would help.

Thanks,

Ammar

Mar 15 '07 #1
3 1049
Provide a new method in the interface and have new clients call that.

Unless someone has a better idea.
Peter
"Abbas" <al******@gmail .comwrote in message
news:11******** **************@ p15g2000hsd.goo glegroups.com.. .
Hi,

I have a web service that returns an object, call it myReturn, which
contains information regarding payments, etc.... I have a new
specification, to add a new property to myReturn to handle some extra
calculations (ie. for amortization). However, I have existing clients
with proxies based on the old object definition. How can I make sure
that adding this extra data being sent back doesnt cause the old
clients to blow up?

I can provide some code samples if that would help.

Thanks,

Ammar

Mar 15 '07 #2
On Mar 15, 11:32 am, "Peter Bradley" <pbrad...@uwic. ac.ukwrote:
Provide a new method in the interface and have new clients call that.

Unless someone has a better idea.

Peter
I'm not clear on what you mean. There will be a new WebMethod in the
service for clients to call. The new WebMethod will return the same
object myReturn (with the new definition) as the old WebMethods.

Mar 15 '07 #3
"Abbas" <al******@gmail .comwrote in message
news:11******** **************@ n76g2000hsh.goo glegroups.com.. .
On Mar 15, 11:32 am, "Peter Bradley" <pbrad...@uwic. ac.ukwrote:
>Provide a new method in the interface and have new clients call that.

Unless someone has a better idea.

Peter

I'm not clear on what you mean. There will be a new WebMethod in the
service for clients to call. The new WebMethod will return the same
object myReturn (with the new definition) as the old WebMethods.
Create a new class MyReturn2 derived from MyReturn. The new class would have
the new properties.

John
Mar 15 '07 #4

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

Similar topics

0
1260
by: Tim Shih | last post by:
Hi, I am implementing a server/client application using remoting. The server communicates with the client by having the client pass an object over to the server when it logs in. The object implements an interface which is shared among both the server and the client. This approach worked fine when debugging within visual studio. However, when I deploy the client as an executable, the server can no longer access the object which the client...
4
1708
by: Shaji Sethu | last post by:
Hello All, I have a question that I have been grapling with for sometime. I have a web service that has been developed by using xsd schema and then generating a WSDL with the included schema. The WSDL then is converted to server side stub which is then implemented. Now the problem is the web service has been deployed and we need to change the functionality a bit. So it means changes to the xsd schemas. How do we change the web services...
6
1876
by: Eric Guthmann | last post by:
Hello all We have an SOA application that includes an ASP.NET webservice and WinForms client. My question is regarding the use of Add Web Reference in Visual Studio. The tool is nice because it easilly creates and updates the client-side proxies that we need to communicate with the webservice. The problem is that our webservice methods accept and return business objects and when generating the proxies, VS creates scoped versions of...
3
10572
by: Andy | last post by:
If I use Visual Studio.Net 2003 to generate "web references" for clients using either sproxy.exe (for C++) client or wsdl.exe (for C#) clients, the web service endpoint gets "baked" into the generated code, making it difficult, if not impossible, to change the server that the client connects to at runtime. e.g. sproxy.exe generated code that looks like this ... static const _soapmap __CCluProvider_GetCertificate_atlsoapheader_map = {
0
2004
by: JDF | last post by:
I am trying to create a Windows service using SimpleXMLRPCServer and win32serviceutil. The service itself seems to be working properly (starts, stops, etc) and I can connect using an XMLRPC client from the localhost. However when I connect from a remote client, I either get a socket error or an xmlrpclib.ProtocolError error. If I use serve_forever() rather than handle_request(), the remote clients can connect but it breaks the Windows...
9
12024
by: jsoques | last post by:
Hello, I created a Web Service using .Net 2.0 that has a function that returns a DataTable. I can test the function from the web page when I access the .asmx from a browser on localhost and it works. I can also test the function using VB6 and the xmlhttp activex object. The problem I have now is when using VS 2005 or VB.Net 2005 Express and creating a web references is that the proxy created doesn't map the function as returning a DataTable...
11
7921
by: Joseph Geretz | last post by:
I've been looking at two approaches for the maintenance of Session state for a Web Service application. One approach uses the old familiar Session object which I've used in the past for Web applications. As far as I can see, the Session approach is non-standard since Web Services are supposed to be agnostic with respect to their clients. It seems that cookies are outside the Web Service standard; therefore, such a Web Service application...
6
3991
by: Joseph Geretz | last post by:
I have the following class which I am serializing and passing back and forth between my Web Service application and the client. public class Token : SoapHeader { public string SID; public string UID; public string PWD; }
0
8279
by: =?Utf-8?B?QWRyaWFuIENvbGU=?= | last post by:
I have written a simple WCF service hosted in a Windows console application and a simple WCF client console application that connects successfully to that service and retrieves data. I then ported the console application to WinForms and also got that to work properly. My next move was to host the WCF service in a Windows service application. I believe I have that working correctly, but I can't for the life of me get a client to connect...
0
9489
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10356
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10100
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9959
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5396
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5528
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2893
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.