Modify service return object without affecting other clients/proxies

  • Thread starter Thread starter Abbas
  • Start date Start date
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
 
Provide a new method in the interface and have new clients call that.

Unless someone has a better idea.


Peter
 
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.
 
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
 
Back
Top