ess, a partner link represents the interaction between the BPEL process and a partner service. Each partner link is associated with a partner link type.
A partner link type characterizes the conversational relationship between two services. The partner link type can have one or two roles.-->
<plnk:role name="ShippingPortTypeRole" portType="tns:ShippingPortType"/>
</plnk:partnerLinkType>
</definitions>
NetBeans IDE - 基于Open-ESB的网上商城系统(5)
时间:2011-07-25 Sun ERI China
返回订单确认
Process Management 系统把订单结果信息发送到某个指定的JMS Message Destination。
Store系统通过监听该Destination获取订单确认结果,更新本系统的订单的状态。
订单确认结果的数据结果有下列的Schema定义:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://xml.netbeans.org/schema/OrderConfirmResult"
xmlns:tns="http://xml.netbeans.org/schema/OrderConfirmResult"
elementFormDefault="qualified">
<xsd:element name="orderresult">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="orderid" type="xsd:string"></xsd:element>
<xsd:element name="isSuccess" type="xsd:boolean"></xsd:element>
<xsd:element name="comments" type="xsd:string"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
下面是两个订单确认的结果,第一个为成功的订单,第二个为不成功的订单。
成功的订单确认结果:
<orderresult xmlns="http://xml.netbeans.org/schema/OrderConfirmResult">
<ns1:orderid xmlns:ns1="http://xml.netbeans.org/schema/OrderConfirmResult" xmlns:ord="http://xml.netbeans.org/schema/orderSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">1</ns1:orderid>
<ns1:isSuccess xmlns:ns1="http://xml.netbeans.org/schema/OrderConfirmResult">true</ns1:isSuccess>< BR> <ns1:comments xmlns:ns1="http://xml.netbeans.org/schema/OrderConfirmResult">Thanks for order</ns1:comments>
</orderresult>
不成功的订单确认结果:
<orderresult xmlns="http://xml.netbeans.org/schema/OrderConfirmResult">
<ns1:orderid xmlns:ns1="http://xml.netbeans.org/schema/OrderConfirmResult" xmlns:ord="http://xml.netbeans.org/schema/orderSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">2</ns1:orderid>
<ns1:isSuccess xmlns:ns1="http://xml.netbeans.org/schema/OrderConfirmResult">false</ns1:isSuccess>
<ns1:comments xmlns:ns1="http://xml.netbeans.org/schema/OrderConfirmResult">Sorry,we have no enough goods</ns1:comments>
</orderresult>
|