我正在使用 Apache ODE 编写一些简单的 BPEL 来连接 2 个 Web 服务。我的两个服务的 WSDL 文件之一包含这种复杂类型:
<types>
<t:schema targetNamespace="http://ws.panos.com/" version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<t:complexType name="myObject">
<t:sequence>
<t:element minOccurs="0" name="str" type="t:string" />
</t:sequence>
</t:complexType>
</t:schema>
如何从服务返回消息(只是一个 xsd:string)复制到消息的输入(在“myObject”类型的“str”内?
我试过这样做,但似乎没有用:
<assign name="assign_2">
<copy>
<from variable="wsA_output" part="return"/>
<to variable="wsC_input" part="arg0" query="/arg0/str"/>
</copy>
我总是得到一个空字符串传输。非常感谢帮助。