我创建了以下 BPEL 脚本。
<?xml version="1.0" encoding="utf-8" ?>
<process name="ProcessInvoice"
targetNamespace="http://invoiceregistry.me.cz/"
xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:invrwsdl="http://invoiceregistry.me.cz/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
<import
location="InvoiceRegistryWS.wsdl"
namespace="http://invoiceregistry.me.cz/"
importType="http://schemas.xmlsoap.org/wsdl/" />
<partnerLinks>
<partnerLink
name="InvoiceRegistryPartnerLink"
partnerLinkType="invrwsdl:InvoiceRegistryPartnerLinkType"
partnerRole="InvoiceRegistryServiceRole" />
</partnerLinks>
<variables>
<variable name="newInvoice" messageType="invrwsdl:insertNewInvoice" />
<variable name="response" messageType="invrwsdl:insertNewInvoiceResponse" />
</variables>
<sequence>
<assign name="PrepareInsertNewInvoiceRequest">
<copy>
<from>
<literal>
<invoice>
<buyerId>entity-02</buyerId>
<sellerId>entity-03</sellerId>
<price>
<currency>CZK</currency>
<value>1000000</value>
</price>
</invoice>
</literal>
</from>
<to variable="newInvoice" part="parameters" />
</copy>
</assign>
<invoke
name="InsertNewInvoice"
partnerLink="InvoiceRegistryPartnerLink"
operation="insertNewInvoice"
inputVariable="newInvoice"
outputVariable="response" />
</sequence>
</process>
我终于成功地部署到我的本地 Apache ODE(在 Tomcat 上运行)安装中。
现在我想知道如何开始这个过程。以下网址:
http://localhost:8080/ode/processes/ProcessInvoice?wsdl
返回以下错误消息:
Requested resource not found!
在哪里可以找到 WSDL 文件?除了手动向它发送 SOAP 消息之外,还有其他方法可以启动该过程吗?