ibm/dw/ode/bpel/executor.wsdl"
xmlns:sns="http://ibm/dw/ode/bpel/service.wsdl"
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
>
<import location="mybiz_flow.wsdl"
namespace="http://ibm/dw/ode/bpel/executor.wsdl"
importType="http://schemas.xmlsoap.org/wsdl/" />
<import location="mybiz_flow_service.wsdl"
namespace="http://ibm/dw/ode/bpel/service.wsdl"
importType="http://schemas.xmlsoap.org/wsdl/" />
...
这将设置 BPEL 文件,因此您可以正确调用每个 WSDL 文件中定义的合作伙伴链接、消息类型、服务和操作。实际上将列出业务流程中将使用的所有合作伙伴链接和变量。
清单 9. 声明合作伙伴链接和变量
...
namespace="http://ibm/dw/ode/bpel/service.wsdl"
importType="http://schemas.xmlsoap.org/wsdl/" />
<!--bpmn2bpel Version 1.0-->
<partnerLinks>
<!--List of services participating in this BPEL process-->
<partnerLink name="mybiz_flowPartnerLink"
partnerLinkType="test:mybiz_flowPartnerLinkType"
myRole="me" />
<partnerLink name="mybiz_flow_servicePartnerLink"
partnerLinkType="sns:mybiz_flow_servicePartnerLinkType"
partnerRole="service"
initializePartnerRole="yes" />
</partnerLinks>
<variables>
<!--List variables used in this BPEL process-->
<variable name="toyChosen"
messageType="test:mybiz_flowMessage"/>
<variable name="addToyToCart_data_in"
messageType="sns:mybiz_flow_serviceMessage"/>
<variable name="addToyToCart_data_out"
messageType="sns:mybiz_flow_serviceMessage"/>
<variable name="viewCart_data_out"
messageType="sns:mybiz_flow_serviceMessage"/>
<variable name="shippingEstimator_data_in"
messageType="sns:mybiz_flow_serviceMessage"/>
<variable name="shippingEstimator_data_out"
messageType="sns:mybiz_flow_serviceMessage"/>
<variable name="checkout_data_out"
messageType="sns:mybiz_flow_serviceMessage"/>
<variable name="orderFailed_data_out"
messageType="sns:mybiz_flow_serviceMessage"/>
<variable name="emailInvoice_data_out"
messageType="sns:mybiz_flow_serviceMessage"/>
<variable name="shippingQueue_data_out"
messageType="sns:mybiz_flo
|