Add a new field to an existing custom web service type

I have a GetPieByName web service that returns a custom Pie type:

public Pie GetPieByName(string name)
{
Pie p = new Pie();
p.name = "Apple Pie";
return p;
}

class Pie {    
string name    
get set methods... 
}

There is only a name in the definition of pie p. Caller A uses the web service.

Down the road after a few months, the definition of Pie p is improved to include weight, expiration date. This will be used by Caller B. After deploying the advanced web service, do I need to do something for Caller A? Will it work if I do not update the wsdl service link?

+4
source share
2 answers

Caller A will work as usual, despite the additional properties in the type.

, WSDL , Pie A.

+1

PIE, CALLER B , GetPieByName() , CALLER A CALLER B

-2

Source: https://habr.com/ru/post/1534753/


All Articles