Modify service return object without affecting other clients/proxies

A

Abbas

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
 
P

Peter Bradley

Provide a new method in the interface and have new clients call that.

Unless someone has a better idea.


Peter
 
A

Abbas

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.
 
J

John Saunders

Abbas said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top