I have created the following BPEL script.
<?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>
I have finally managed to successfully deploy in into my local Apache ODE (running on Tomcat) installation.
Now I'm wondering how to make the process start. The following URL address:
http://localhost:8080/ode/processes/ProcessInvoice?wsdl
returns the following error message:
Requested resource not found!
Where do I find the WSDL file? Is there s way to start the process other than to manually send a SOAP message to it?