Forum Discussion

jimbobm123's avatar
jimbobm123
New Contributor
10 years ago

[Resolved] Issue With REST Property Transfer



It is a REST request, here is the first part of the Response in soapUI as XML:



The XPath is not finding a match even though it is there. Help please?

2 Replies

  • Aks1982's avatar
    Aks1982
    Occasional Contributor
    If the actual response is in JSON, with soapUI 5.1, you can transfer the value from "Response" and selecting "Path Language" as "JSONPath".
    But not sure if this option is available in SoapUI free version.

    Otherwise you need to define the namespace. You can use '*" to bypass if namespace is not relevant.

    //*:Response
  • jimbobm123's avatar
    jimbobm123
    New Contributor
    Yes I was able to do that and it worked. I did not realized you needed to prefix every tag with the namespace. Though you only needed it for the first one in the XPath Expression. Thank you very much.