Ian Griffiths wrote: > > Evolving public APIs is hard. But web services certainly > > make it a lot easier, because there isn't that hard > > dependence on a specific assembly being available at > > both ends.
Frans Bouma replied: > Erm... if the developer has written his webservice > referencing client with vs.net, the client has specific > code inside itself targeting a specific version of the > webservice. Ah - now we've found the core of your misunderstanding. This is where you're going wrong. No, what you've said there is not true at all. If the developer has written a client that has a web service reference generated with VS.NET, the client has a dependency on the structure of the XML it expects to see coming out of the web service. It absolutely does *not* have a dependence on any particular version of the web service. I could rewrite the web service completely, and as long as the XML continues to be satisfactory to the client, the client will be happy. And by the way, the web references that VS.NET generates are actually pretty robust in the face of changes in the XML - if you send them XML containing new stuff they don't recognize, they ignore it. If stuff they are expecting is missing, you'll just get default values (0, false, null, whatever). Obviously this is a double-edged sword - it's possible for this to make your life harder. But if used with care, this can enable a degree of freedom you just don't get in .NET remoting. And even ignoring that feature of web references, the fact is that you aren't depending on any particular type. You are dependent on nothing more than what XML you are able to process. -- Ian Griffiths - DevelopMentor (RSS: http://www.interact-sw.co.uk/iangblog/ ) =================================== This list is hosted by DevelopMentor� http://www.develop.com Some .NET courses you may be interested in: NEW! Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles http://www.develop.com/courses/gaspdotnetls View archives and manage your subscription(s) at http://discuss.develop.com
