File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes parsing response from a webService in BPEL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "parsing response from a webService in BPEL" Watch "parsing response from a webService in BPEL" New topic
Author

parsing response from a webService in BPEL

Tanu Gulati
Ranch Hand

Joined: Oct 06, 2008
Posts: 113


i designed a web Service using jdeveloper and i wanted NOT the full response to show in the result. I just want to show only one element of full result to be shown in the result.

for ex. the result from the web service gives the <name>,<age> and <address> but i just want to show only the <name> element in result. how can i achive in bpel.


<assign name="Assign_1">
<copy>
<from variable="Invoke_1_getDate_OutputVariable" part="parameters"
query="/ns1:getDateResponse/ns1:return"/>
<to variable="outputVariable" part="payload"
query="/client:CallJavaServiceProcessResponse/client:result"/>
</copy>
</assign>

i dont want to copy the full return but i want to copy only <name> variable present in return

thanks
Tanu Gulati
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39552
    
  27
The query attribute can contain an arbitrary XPath expression; it should be possible to select any element you wish to.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: parsing response from a webService in BPEL
 
Similar Threads
parsing response from a webService in BPEL
Trying to add new elemwent to BPEL, and it is now having binding error
http post with bpel
Need some help with BPEl invoking another service (define and pass the data from one to the other)
Java Web Services 2