Data types between Java and WCF

This article is a part of WCF & Java Interop

SCM Anywhere is a comprehensive tool and uses various C# data types, including lists. You may doubt whether Java can recognize these C# data types. Actually, WCF uses Web Services Description Language (WSDL) to describe services and uses XML Schema to describe the data types used in Messages. For more information about XML Schema for data types, you can refer to: XML Schema Part 2: Datatypes Second Edition.

 

WSDL is language-independent and supported by Microsoft, IBM, and other vendors. WCF provides a rich infrastructure for exporting, publishing, retrieving, and importing service metadata. WCF services use metadata to describe how to interact with the service’s endpoints so that tools, such as wsimport, can automatically generate client code for accessing the service.

 

C# basic data types can be described in WSDL as a specific format. Metro generates Java client code from the WSDL document. For example, the syntax of the “int” data type is as follows:

<xs:element minOccurs="0" name="value" type="xs:int" />

In all, many data types can be used between Java and WCF. I will talk about some common data types between Java and WCF in the next article.

 

Search Blog Posts