Retrieve Value from SOAP response

Hi All,

Currently I’m working in some SOAP request Scripts using API, I would like to know how to store some value from the response data.
Example: I’m Looking to obtain the value “SessionID” from the response and use it as a variable.

Here is my Response:
<soap:Envelope xmlns:soap=“”>


  <ns2:signinResponse xmlns:ns2="">
        <userAnswers xmlns:xsi="" xsi:nil="true" />

Thanks in advance and appreciate all the help. :smile_cat:

Hi @ivan_jimenez - I couldn’t find an example from the New Relic documentation but I found an example on StackOverflow which you should be able to use. Once you have the response object you should be able to extract your SessionId.

1 Like