WSDLタイプ・セクションにおける複数のスキーマ要素に関する必知事項
<wsdl:types>セクションに複数の<schema>要素がある場合、次のシナリオでは、
getElement()メソッドは最初の<schema>要素のみを取ります。
-
targetNamespace要素がない場合。 -
<wsdl:types>の下部の<schema>要素に同じtargetNamespaceがある場合。
これを回避するには、各スキーマ要素に次のものが含まれていることを確認します:
-
targetNamespace要素。 -
各
targetNamespace要素はスキーマごとに異なります。
次に、異なるtargetNamespace要素を含む<wsdl:types>セクションの例を示します。
<wsdl:types>
<schema xmlns="http://www.example.com/2001/XMLSchema"
targetNamespace="http://namespace1.name/">
<import namespace="http://xmlns.example.com/singleString"
schemaLocation="../Schemas/singleString.xsd" />
</schema>
<schema xmlns="http://www.example.com/2001/XMLSchema"
targetNamespace="http://namespace2.name/">
<import namespace="http://xmlns.example.com/pcbpel/samples/expense"
schemaLocation="../Schemas/mqresponse.xsd" />
</schema>
</wsdl:types>