© Copyright International Business Machines Corporation 2005. All rights reserved.US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
此版本注意事項檔案含有 WebSphereR Integration Developer 組合編輯器之限制、已知問題和暫行解決方法的最新相關資訊:
如果 WSDL 介面定義中有作業採用多組件傳回類型, 則不支援在 Java 元件中進行「WSDL 介面參照至 JavaTM 介面參照」的轉換。
此外,如果 Java 元件的 WSDL 介面中有作業採用多組件傳回類型, 亦不支援建立該 Java 元件的 Java 實作。
這些限制已存在,因為「服務元件架構 (SCA)」不支援這些情況。
某些可在 SCDL 物件中使用的 WSDL 介面類型(如:元件、匯入項目、匯出項目和獨立式參照)存在一項限制。
這些物件不支援下面的綱目型樣:
- 其行內綱目中含有一個空值 targetNamespace 的 WSDL 介面
- 其行內綱目中含有一個未被參照的 XSD 匯入項目的 WSDL 介面
以下是這些型樣的兩個範例:
- 目標名稱空間為空值的行內綱目(請注意,其中遺漏 targetNamespace 屬性):
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:tns="http://Test/Test"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Test"
targetNamespace="http://Test/Test">
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="operation1">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="input1" nillable="true"
type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="operation1Response">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="output1" nillable="true"
type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="operation2">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="input1" nillable="true"
type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="operation1RequestMsg">
<wsdl:part element="tns:operation1" name="operation1Parameters" />
</wsdl:message>
<wsdl:message name="operation1ResponseMsg">
<wsdl:part element="tns:operation1Response"
name="operation1Result" />
</wsdl:message>
<wsdl:message name="operation2RequestMsg">
<wsdl:part element="tns:operation2" name="operation2Parameters" />
</wsdl:message>
<wsdl:portType name="Test">
<wsdl:operation name="operation1">
<wsdl:input message="tns:operation1RequestMsg"
name="operation1Request" />
<wsdl:output message="tns:operation1ResponseMsg"
name="operation1Response" />
</wsdl:operation>
<wsdl:operation name="operation2">
<wsdl:input message="tns:operation2RequestMsg"
name="operation2Request" />
</wsdl:operation>
</wsdl:portType>
</wsdl:definitions>
- 未被參照的匯入項目 - 請注意,BO2.xsd 雖已匯入,但行內綱目中卻沒有元素參照 BO2.xsd 中的任一項。其中所定義的類型由 operation1ResponseMsg WSDL 訊息直接參照。
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:bons1="http://Test"
xmlns:bons2="http://Test/BO2" xmlns:tns="http://Test/Unref"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Unref"
targetNamespace="http://Test/Unref">
<wsdl:types>
<xsd:schema targetNamespace="http://Test/Unref"
xmlns:bons1="http://Test" xmlns:bons2="http://Test/BO2"
xmlns:tns="http://Test/Unref"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:import namespace="http://Test"
schemaLocation="BO1.xsd" />
<xsd:import namespace="http://Test/BO2"
schemaLocation="BO2.xsd" />
<xsd:element name="operation1">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="input1" nillable="true"
type="bons1:BO1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="operation1RequestMsg">
<wsdl:part element="tns:operation1" name="operation1Parameters" />
</wsdl:message>
<wsdl:message name="operation1ResponseMsg">
<wsdl:part type="bons2:BO2" name="operation1Result" />
</wsdl:message>
<wsdl:portType name="Unref">
<wsdl:operation name="operation1">
<wsdl:input message="tns:operation1RequestMsg"
name="operation1Request" />
<wsdl:output message="tns:operation1ResponseMsg"
name="operation1Response" />
</wsdl:operation>
</wsdl:portType>
</wsdl:definitions>
無