src-resolve.4.2:解析组件"输入数据"时出错。检测到"输入数据"位于命名空间"http://www.w3.org/2001/XMLSchema"中



我试图将BPEL的输入设置为复杂类型,但在object中得到错误。
我希望有人能给我一个提示。提前谢谢你。这是我的代码:

<?xml version="1.0"?>
<definitions name="testBPEL2"
        targetNamespace="http://test.bpel2"
        xmlns:tns="http://test.bpel2"
        xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
        xmlns="http://schemas.xmlsoap.org/wsdl/"
        xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
        >
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     TYPE DEFINITION - List of types participating in this BPEL process 
     The BPEL Designer will generate default request and response types
     but you can define or import any XML Schema type and use them as part 
     of the message types.
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->    
    <types>
        <schema attributeFormDefault="unqualified" elementFormDefault="qualified" 
                targetNamespace="http://test.bpel2" 
                xmlns="http://www.w3.org/2001/XMLSchema">
            <element name="testBPEL2Request">
                <complexType>
                    <sequence>
                        <element name="input" type="InputData"/>
                    </sequence>
                </complexType>
            </element>
            <element name="testBPEL2Response">
                <complexType>
                    <sequence>
                        <element name="result" type="OutPutData"/>
                    </sequence>
                </complexType>
            </element>
            <complexType name="InputData">
                <sequence>
                    <element name="citta" type="string"></element>
                    <element name="id_libro" type="int"></element>
                </sequence>
            </complexType>
            <complexType name="OutputData">
                <sequence>
                    <element name="libreria" type="string"></element>
                    <element name="prezzo" type="int"></element>
                </sequence>
            </complexType>
        </schema>
    </types>
我希望有人能给我一个提示。

I guess

<sequence>
  <element name="input" type="InputData"/>
</sequence>

应该读

<sequence>
  <element name="input" type="tns:InputData"/>
</sequence>

最新更新