• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

parsing response from a webService in BPEL

 
Ranch Hand
Posts: 113
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The query attribute can contain an arbitrary XPath expression; it should be possible to select any element you wish to.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic