wood burning stoves*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 41137
    
  45
The query attribute can contain an arbitrary XPath expression; it should be possible to select any element you wish to.


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