This section describes the datatypes supported in WST. The datatype must belong to a supported component type for it to be available as a Web service. Supported datatypes include:
JAX-RPC defined data types – Refer to chapter four (WSDL/XML to Java Mapping) and five (Java to XML/WSDL Mapping) of the Java API for XML-based RPC JAX-RPC 1.0 specification. See the JAX-RPC download site
Java with IDL datatypes – the component’s method declarations use the datatype mappings that are specified by the CORBA document, IDL to Java Language Mapping Specification (formal/99-07-53).
CORBA C++ with IDL datatypes – the component’s method declarations use the OMG standard for translating CORBA IDL to C++. For more specifics, see C++ Language Mapping Specification (formal/99-07-41). You can download this document from the OMG Web site. C++ datatype mappings are the same as the Java/IDL component datatype mappings that are listed in Table 3-1.
Table 3-1 lists the datatypes supported in WST and EAServer by default, and the equivalent XML XSD types.
In addition to the datatypes described in Table 3-1, Web services supports java.sql.ResultSet and TabularResults.ResultSet, which maps to a complex schema element that contains the resultset data and the schema for the resultset:
For java.sql.ResultSet:
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="jdbc.wst.sybase.com">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
<complexType name="DataReturn">
<sequence>
<element name="XML" nillable="true" type="xsd:string" />
<element name="updateCount" type="xsd:int" />
<element name="DTD" nillable="true" type="xsd:string" />
<element name="schema" nillable="true" type="xsd:string" />
</sequence>
</complexType>
</schema>
</wsdl:types>
For TabularResults.ResultSet:
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="TabularResults.wst.sybase.com">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
<complexType name="DataReturn">
<sequence>
<element name="XML" nillable="true" type="xsd:string" />
<element name="updateCount" type="xsd:int" />
<element name="DTD" nillable="true" type="xsd:string" />
<element name="schema" nillable="true" type="xsd:string" />
</sequence>
</complexType>
</schema>
</wsdl:types>
When you expose a component that uses EAServer-specific holder types as a Web service, the convention for generating the client-side holders classes is that they are always generated under a package.holders.type hierarchy. For example, when you expose a component as a Web service that uses holder type BCD.MoneyHolder, the conversion on the client-side results in a JAX-RPC specific holder contained under BCD.holders.MoneyHolder. You cannot use EAServer specific types on the Web service client side.
| Copyright © 2005. Sybase Inc. All rights reserved. |
|
|