Tip:
Highlight text to annotate it
X
A new SOA/BPEL project needs to be created
This BPEL process will implement a proxy of the calculator web service, for this reason it will have the same WSDL interface and XSD data model
The Netbeans IDE provides adequate plugins to explore and edit WSDL and XSD documents
To start implementing the BPEL process and link to the WS to be consumed will be created. This is a partner link to invoke WS and it is created by dragging and dropping the WSDL at the right side of the BPEL process.
A new WSDL file named wrapper has been created. This WSDL imports the WSDL of the calculator web service and includes the partner link (the specification of the web services that will be used).
now an invoke BPEL activity will be added in order to invoke the calculator web service
Two internal BPEL variables will be used to prepare the ws request and to retrieve the response.
Again the WSDL of the calculator web service will be used to create a partner link, this time describing the service to be provided by the BPEL proxy.
You can inspect the new wrapper specifying the partner link to the bpel process.
The receive and reply activities including the variables to retrieve the request and to prepare the response will be added.
Assign activities are commonly used to manipulate XML documents, by selecting elements and assign them to other XML documents.
Check the XML syntax and build the BPEL project. It is ready to be deployed within the BPEL service engine.