BPEL - Manipulating with XML.

In BPEL everything is XML, we are passing a XML to one web service and getting response from same. All manipulating of XML data can be done in BPEL by using local variables and flow. The main purpose of BPEL is to transformation between different web service.

XPath is standard way of manipulating XML data in BPEL. More advanced manipulation can be done using Java,XLST and XQuery. XPath is a simple language to navigate XML document to find a information from XML. But XPath is painful to do complex manipulation hence most of the complex logic can be done in Java or XQuery.

Following is from http://www.w3schools.com/
Here is a simple XPath Query example

/BookStore/book[1] - Selects the first book from BookStore element.
/BookStore/book[last()] - Selects the last book from BookStore element..
/BookStore/book[last()-1] - Selects the last but one book from BookStore element..

It is not necessary to remember all systex and commands, since now almost all IDEs has plugins to develop BPEL logic and complex logic can be done in Java as custom code.

Comments

Popular posts from this blog

Coupon Crazy

Google's Killer Application.

Uncontrolled Musing