• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic