WCF has some weak spots when it comes to contract first development. Creating a service starting from a given XSD or WSDL is a scenario that is common in enterprise integration.
One option is using svcutil.exe to generate a service interface for a WSDL file.
Today I found a tool on CodePlex that has much more capabilities: WSCF.blue tool.
WSCF comes with a lot of useful features (quote CodePlex):
- A WSDL Wizard that allows the developer to step through the creation of a WSDL from one or more XSDs.
- A Data Contract Generator (similar to XSD.exe, XSDObjectGen.exe and Svcutil.exe) that generates the . NET equivalent of the XSD types.
- A Service/Endpoint Stub (SVC) Generator and
- A Client Proxy Generator.
- A Generate Data Contract Code feature that supports the selection of multiple XSD/WSDL source files. (More Information)
Tools like this makes life much easier if you have to be compatible with a predefined WSDL file…
Peter Borremans