Web Service - Start from WSDL
The following guidelines apply when designing a Java web service starting from a WSDL:
- If the WSDL was generated by
DataContractSerializer
, enable JAXB 2.0 customizations described in Customizations for WCF Service WSDL". The rationale for the JAXB 2.0 customizations is described in the same section.- If the WSDL is a result of contract first approach, verify that the WSDL can be processed by either the
DataContractSerializer
orXmlSerializer
mechanisms.The purpose of this step is to ensure that the WSDL uses only the set of XML schema features supported by JAXB 2.0 or .NET serialization mechanisms. JAXB 2.0 was designed to support all the XML schema features. The WCF serialization mechanisms,
DataContractSerializer
andXmlSerializer
, provide different levels of support for XML schema features. Thus, the following step will ensure that the WSDL/schema file can be consumed by the WCF serialization mechanisms.