Forum Discussion

shevez's avatar
shevez
New Contributor
9 years ago

Transfer part of the response

Hi All,

 

I'm new in SoapUI webservices testing and I have problem with data transferring between Response and Request.
I would like to use “session id” and “authToken id” from Response in first TestStep in the Reqest in another Test Step.


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<ns1:session id="DF83950B" xmlns:ns1="http://xml.x.com/ws"/>
<ns1:authToken id="8wFC1T0U" xmlns:ns1="http://xml.x.com/ws"/>
</soapenv:Header>
<soapenv:Body>
<ns1:loginReturn xmlns:ns1="http://xml.x.com/ws/login">OK.</ns1:loginReturn>
</soapenv:Body>
</soapenv:Envelope>

 

Thanks in advance for your help.

 

  • To get the attribute use @ in xpath.

    for example
    //ns1:session/@id