This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 42360
    
  64
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
 
 
subject: parsing response from a webService in BPEL