© 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 接口定义具有多重部件返回类型操作情况下,不支持将 WSDL 接口引用转换为 JavaTM 组件上的 Java 引用。
另外,如果 Java 组件有一个 WSDL 接口,而该接口具有带有多部分返回类型的操作,则也不支持为该组件创建 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>
无