Developing a Microsoft .NET Client
This section describes how to develop a .NET client that uses data binding.
Do the following steps to generate a Microsoft .NET client from a Java web service WSDL file:
- Generate WCF web service client artifacts using the
svcutil.exetool:
svcutil.exe <java-web-service-wsdl>
svcutil.exehas the following options for selecting a serializer.
svcutil.exe /serializer:auto (default)
svcutil.exe /serializer:DataContractSerializer
svcutil.exe /serializer:XmlSerializerWe recommend using the default (
/serializer:auto) option. This option ensures thatsvcutil.exefalls back toXmlSerializerif an XML schema construct is used that cannot be processed byDataContractSerializer.For example, in the following class field
priceis mapped to an XML attribute that cannot be consumed byDataContractSerializer.public class POType { @javax.xml.bind.annotation.XmlAttribute public java.math.BigDecimal price; } <!-- XML schema fragment --> <xs:complexType name="poType"> <xs:sequence/> <xs:attribute name="price" type="xs:decimal"/> </xs:complexType>- Develop the .NET client using the generated artifacts.