BPEL と Web サービスは初めてです。文字列の配列を返す Web サービスがあります。BPEL でこの Web サービスを呼び出し、Web サービスを Apache ODE にデプロイします。Eclipse で BPEL デザイナー ツールを使用しています。
BPEL サービスから取得した結果は、配列の最初の要素です。コンソールでは、配列全体が渡されていることがわかります。出力を配列として設定するにはどうすればよいですか? 私の出力変数の型は文字列です。リスト、配列、または文字列のリストなどの型が見つかりません。
この文字列のリスト:
<xs:element name="getAvailableBungalowsResponse">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="return" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
これに入る必要があります:
<complexType name="Bungalow">
<sequence maxOccurs="unbounded" minOccurs="0">
<element name="bungalowInfo" type="string"></element>
</sequence>
</complexType>
Bpel from-to は次のようになります。
<bpel:copy>
<bpel:from part="parameters" variable="HolidayVillageServiceLinkResponse">
</bpel:from>
<bpel:to part="bungalows" variable="output">
</bpel:to>
</bpel:copy>
BPEL デザイナーで表示されるエラーは次のとおりです。
The from-spec of "<xs:complexType>" is not compatible with to-spec of "<complexType "Bungalow">" - Element <ns:return> in platform:/resource/HolidayVillage/bpelContent/HollidayVillage.wsdl differs from <tns:bungalowInfo> in platform:/resource/HolidayVillage/bpelContent/HolidayVillageReservationArtifacts.wsdl - different QNames: ns:return vs tns:bungalowInfo HolidayVillageReservation.bpel /HolidayVillage/bpelContent line 98 BPEL Validation Marker