16.4. Developing a Microsoft .NET Client

This section describes how to develop a .NET client that uses data binding.

To Develop a Microsoft .NET Client

Perform the following steps to generate a Microsoft .NET client from a Java web service WSDL file.

  1. Generate WCF web service client artifacts using the svcutil.exe tool:
    svcutil.exe java-web-service-wsdl

    svcutil.exe has the following options for selecting a serializer:

    • svcutil.exe /serializer:auto (default)

    • svcutil.exe /serializer:DataContractSerializer

    • svcutil.exe /serializer:XmlSerializer

    It is recommended that you use the default option, /serializer:auto. This option ensures that svcutil.exe falls back to XmlSerializer if an XML schema construct is used that cannot be processed by DataContractSerializer.

    For example, in the following class the field price is mapped to an XML attribute that cannot be consumed by DataContractSerializer.

    public class POType {
        public java.math.BigDecimal price;

    <!-- XML schema fragment -->
    <xs:complexType name="poType">
        <xs:attribute name="price" type="xs:decimal"/>
  2. Develop the .NET client using the generated artifacts.

Terms of Use; Privacy Policy; Copyright ©2013-2015 (revision 20150226.965aeb8)
Please Confirm