Forum Discussion

rich560's avatar
rich560
New Contributor
5 years ago
Solved

SOAPUI Property Transfer XPATH

I am new to SOAPUI and have a simple question about Property Transfer.  The Response I want to transfer is:   <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http...
  • JHunt's avatar
    5 years ago

    In your request, you are calling the 'http://tempuri.org/' namespace with the tem prefix. When you declare the name spaces for your Property Transfer, it has automatically prefixed that same namespace as ns1. So you need to change the declaration, or change your path.

     

    declare namespace soap='http://schemas.xmlsoap.org/soap/envelope/';
    declare namespace ns1='http://tempuri.org/';
    //ns1:Subtract[1]/ns1:intA[1]

    or

    declare namespace soap='http://schemas.xmlsoap.org/soap/envelope/';
    declare namespace tem='http://tempuri.org/';
    //tem:Subtract[1]/tem:intA[1]