Forum Discussion

Azefeld82's avatar
Azefeld82
New Contributor
15 years ago

Xpath in transfer properties

Hi
I try to transfert a property from a response to a request.
My problem is the follwing.
I have this response:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<fireTriggerResponse xmlns="http://soapapi.dc.software.swa.com">
<out>0000012F2B17CB03-00063</out>
</fireTriggerResponse>
</soap:Body>
</soap:Envelope>

And when I put this code in the xpath field of source:

declare namespace ns='http://soapapi.dc.software.swa.com';
//ns:out[1]

I have this value :

<soap:out xmlns:soap="http://soapapi.dc.software.swa.com">0000012F2B17CB03-00063</soap:out>

But I would like have only:
0000012F2B17CB03-00063

What is my mistake?

4 Replies

  • singam19's avatar
    singam19
    New Contributor
    Use the Addstep-->propertytransfer .
    Then you wont get this issue.
  • Try this xPath expression to get the selected data &colon;
    /soap:Envelope/soap:Body/*[name()='fireTriggerResponse']/*[name()='out']

    Do let us know if this work.
    Thanks!
    ~~ Pradeep Bishnoi ~~
  • You must have, in your target, the XPath that you want to replace (with the "response" value)
    Otherwise, you can use a property to load your value and then use it to write it in your other request...

    And try to check the "Transfert Text Content" ...