システムは、事前定義のルールを使用して、Java 型に基づいて XML を生成します。
表 1は、 システムが Java™ 型と XML 間でどのように変換を行うかを示しています。 システムは、Web サービス記述言語 (WSDL) 文書の型のセクションに XML を配置します。
Java 型 | XML 型 |
---|---|
char または java.lang.Character | <ati:schema targetNamespace="http://xml.apache.org/xml-soap" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ati="http://www.w3.org/2001/XMLSchema"> <ati:simpleType name="char"> <ati:restriction base="xsd:string"> <ati:length value="1"/> </ati:restriction> </ati:simpleType> </ati:schema> tns2:char または tns2:char nillable = true |
boolean | xsd:boolean |
java.lang.Boolean | xsd:boolean nillable=true |
byte または java.lang.Byte | xsd:byte または xsd:byte nillable=true |
short または java.lang.Short | xsd:short または xsd:short nillable=true |
int または java.lang.Integer | xsd:int または xsd:int nillable = true |
long または java.lang.Long | xsd:long または xsd:long nillable=true |
float または java.lang.Float | xsd:float または xsd:float nillable=true |
Double または java.lang.Double | xsd:double または xsd:double nillable=true |
java.lang.String | xsd:string nillable=true |
java.math.BigInteger | xsd:integer nillable=true |
Java.math.BigDecimal | xsd:decimal nillable=true |
Java.util.Calendar | xsd:dateTime nillable=true |
java.util.Date | xsd:dateTime nillable=true |
Java.xml.namespace.QName | xsd:Qname nillable=true |
java.net.URI | xsd:anyURI nillable=true |
byte[] | xsd:base64Binary |
型の配列 | 型のエレメントを含み、maxocurrs が 1 より大きいか unbounded である xsd:complexType |
Java クラス 重要: Java クラスがユーザー定義クラスの場合、
そのクラスは、JAX-RPC 1.1 のセクション 5.4 に準拠する必要があります。
|
JAX-RPC 1.1 のセクション 5.4 のルールに従う xsd:complexType |
java.lang.Object | xsd:anyType |
java.util クラス (Collection、List,ArrayList、Set、SortedSet、AbstractCollection、AbstractList、AbstractSet、Hashset LinkedHashSet、LinkedList、Stack、Treeset など) 重要: 現在サポートされるのは、リストされた Java 型の集合のみです。
|
<complexType name="ArrayOfXSDAnyType"> <sequence> <element maxOccurs="unbounded" minOccurs="0" name="anyType" nillable="true" type="xsd:anyType"/> </sequence> </complexType> |
|
targetNamespace="http://xml.apache.org/xml-soap" <complexType name="Item"> <all> <element name="key" type="xsd:anyType"/> <element name="value" type="xsd:anyType"/> </all> </complexType> <complexType name="Map"> <sequence> <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns2:Item"/> </sequence> </complexType> |
java.util.Vector | targetNamespace="http://xml.apache.org/xml-soap" <complexType name="Vector"> <sequence> <element maxOccurs="unbounded" minOccurs="0" name="item" type="xsd:anyType"/> </sequence> </complexType> |
java.util.types ここで、types には、Arrays、SortedMap、AbstractMap、Bitset、Dictionary、IdentityHashmap、 LinkedHashMap、TreeMap を指定できます。 これは、WSDL 型 xsd:anytype を生成することが可能な java.util 型の包括的なリストではありません。 |
xsd:anytype |
Object[] - オブジェクトの配列 | <complexType name="ArrayOfXSDAnyType"> <sequence> <element maxOccurs="unbounded" minOccurs="0" name="anyType" nillable="true" type="xsd:anyType"/> </sequence> </complexType> |