我试图让我的BPEL输入成为一个复杂类型,但是我在对象中得到了错误。
我希望有人能给我一个提示。先感谢您。
这是我的代码:
<?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>
我希望有人能给我一个提示。提前谢谢。
答案 0 :(得分:0)
我想
<sequence>
<element name="input" type="InputData"/>
</sequence>
应该阅读
<sequence>
<element name="input" type="tns:InputData"/>
</sequence>