Refactoring a Web Service

11/10/09

Refactoring a Web Service

I’m in the process of refactoring and revising an existing Web Service. Clients exist out in the field, and I want to insure that I don’t break the contract.

There’s an easy way to do this: diff the WSDL. If the WSDL for the old service matches that of the new (and the behavior remains unchanged), existing clients should still work.

To make comparisons simple, don’t change the order of the web methods. Also don’t reorder properties on any serialized classes.

Thanks to Mark at work for this tip!


Your Host: webmaster@truewill.net
Copyright © 2000-2013 by William Sorensen. All rights reserved.