cancel
Showing results for 
Search instead for 
Did you mean: 

How to get vale for this kind of response and pass it to another request ?

Occasional Contributor

How to get vale for this kind of response and pass it to another request ?

Hi,
I'm trying to get specific value from response via 'property transfer' but i don't have any idea how to take it from it,
I will be very grateful for help.

 

This is my response:

<InvokeSBSEventRs xmlns="xyz">
<EventType>Receipt</EventType>
<Parameters>
<Parameter name="PROCEDURE_RESULT" type="java.lang.String">OK</Parameter>
<Parameter format="0.#########################" name="RECEIPT_ID" type="oracle.jbo.domain.Number">54326</Parameter>
<Parameter format="0.#########################" name="PAYMENT_ID" type="oracle.jbo.domain.Number">54326</Parameter>
<Parameter name="APPLSRC" type="java.lang.String">GEN</Parameter>
<Parameter name="RETURN_STATUS" type="java.lang.String">F</Parameter>
</Parameters>
</InvokeSBSEventRs>

 

I'm trying to get RECEIPT_ID and i received null as a result

 

my path looks like that

//*Smiley Tonguearameters//*Smiley Tonguearameter/*Smiley Tonguearameter[Parameter="RECEIPT_ID"]

 

 

2 REPLIES 2
Super Contributor

Re: How to get vale for this kind of response and pass it to another request ?

Please use this link to evaluate xpath:-

https://www.freeformatter.com/xpath-tester.html

 

And below is the xpath evaluated for RECEIPT_ID :-

 

//Parameters/Parameter[2]/text()
Occasional Contributor

Re: How to get vale for this kind of response and pass it to another request ?

It was good prompt but as answer i still received [null]

Now i have something like that: 
//*Smiley Tonguearameters/*Smiley Tonguearameter[@name='RECEIPT_ID']

and it gives me correct number Smiley Happy
but anyway thanks for response !

New Here?
Join us and watch the welcome video:
Join the exciting event
SeptemberHubBub
Top Kudoed Authors
Join the September Hub-bub to show off, learn and win