I have a web service and I'm using an enum type in it. I have made some change开发者_如何学JAVAs in my code and i added a new value to my enum type. Is this going to change my wsdl declaration ? And is that going to break all the clients that use my web service ? I use .NET
Thanks in advance!
It will change your WSDL.
However, it won't "break" your clients, in all likelihood.
OTOH, if you don't want clients to see the new enum value, then you should not include it: create two enum types: one to be used internally, and one to be returned from the web service. Convert from one to the other.
Yes, it changes your wsdl, but in a non-breaking way as long as the new enum value is added to the end of the enum. Newer clients won't be able to submit that enum unless they update their service references.
精彩评论