Supported XML User-Defined Data Types Supported Java User-Defined Data Types

Understanding Data Binding 5-5 If your XML or Java data type is not listed in these tables, and it is not one of the built-in data types listed in Section 5.2, Supported Built-In Data Types, then you must create the user-defined data type artifacts manually.

5.3.1 Supported XML User-Defined Data Types

The following table lists the XML Schema data types supported by the jwsc and wsdlc Ant tasks and their equivalent Java data type or mapping mechanism. For details and examples of the data types, see the JAX-RPC specification at http:java.netprojectsjax-rpc . Table 5–3 Supported User-Defined XML Schema Data Types XML Schema Data Type Equivalent Java Data Type or Mapping Mechanism xsd:complexType with elements of both simple and complex types. JavaBean xsd:complexType with simple content. JavaBean xsd:attribute in xsd:complexType Property of a JavaBean Derivation of new simple types by restriction of an existing simple type. Equivalent Java data type of simple type. Facets used with restriction element. Facets not enforced during serialization and deserialization. xsd:list Array of the list data type. Array derived from soapenc:Array by restriction using the wsdl:arrayType attribute. Array of the Java equivalent of the arrayType data type. Array derived from soapenc:Array by restriction. Array of Java equivalent. Derivation of a complex type from a simple type. JavaBean with a property called _value whose type is mapped from the simple type according to the rules in this section. xsd:anyType java.lang.Object xsd:any javax.xml.soap.SOAPElement or org.apache.xmlbeans.XmlObject xsd:any[] javax.xml.soap.SOAPElement[] or org.apache.xmlbeans.XmlObject[] xsd:union Common parent type of union members. xsi:nil and xsd:nillable attribute Java null value. If the XML data type is built-in and usually maps to a Java primitive data type such as int or short, then the XML data type is actually mapped to the equivalent object wrapper type such as java.lang.Integer or java.lang.Short . Derivation of complex types Mapped using Java inheritance. Abstract types Abstract Java data type. 5-6 Getting Started With JAX-RPC Web Services for Oracle WebLogic Server

5.3.2 Supported Java User-Defined Data Types

The following table lists the Java user-defined data types supported by the jwsc and wsdlc Ant tasks and their equivalent XML Schema data type. Table 5–4 Supported User-Defined Java Data Types Java Data Type Equivalent XML Schema Data Type JavaBean whose properties are any supported data type. xsd:complexType whose content model is a xsd:sequence of elements corresponding to JavaBean properties. Array and multidimensional array of any supported data type when used as a JavaBean property An element in a xsd:complexType with the maxOccurs attribute set to unbounded . java.lang.Object Note: The data type of the run-time object must be a known type. xsd:anyType Apache XMLBeans that are inherited from org.apache.xmlbeans.XmlObject only Note : The Web service that uses an Apache XMLBeans data type as a return type or parameter must be defined as document-literal-wrapped or document-literal-bare . See Apache XMLBeans at http:xmlbeans.apache.orgindex .html . java.util.Collection Literal Array java.util.List Literal Array java.util.ArrayList Literal Array java.util.LinkedList Literal Array java.util.Vector Literal Array java.util.Stack Literal Array java.util.Set Literal Array java.util.TreeSet Literal Array java.utils.SortedSet Literal Array java.utils.HashSet Literal Array Note: The following user-defined Java data type, used as a parameter or return value of a WebLogic Web service in Version 8.1, is no longer supported: JAX-RPC-style enumeration class. Additionally, generics are not supported when used as a parameter or return value. For example, the following Java method cannot be exposed as a public operation: public ArrayListString echoGenericArrayListString in { return in; } 6 Invoking Web Services 6-1 6 Invoking Web Services The following sections describe how to invoke WebLogic Web services: ■ Section 6.1, Overview of Web Services Invocation