Search code examples
c#web-servicesenumswsdl

If I add new possible values to my enum type, will this change my wsdl?


I have a web service and I'm using an enum type in it. I have made some changes 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!


Solution

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