Forum Discussion

sathyaraj's avatar
sathyaraj
Occasional Contributor
9 years ago

property transfer in soapui with specific part of the xml message

I have tried the to post the specific part of the response to request using the property transfer step, but i am getting this below error..

 

Response1:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header xmlns="http://xml.amadeus.com/ws/2009/01/WBS_Session-2.0.xsd">
<Session>
<SessionId>wrwrweqrwqer</SessionId>
<SequenceNumber>2</SequenceNumber>
<SecurityToken>rwerweqrwqerwqers23423423</SecurityToken>
</Session>
</soap:Header>
<soap:Body>
<DCSLST_GetPassengerListReply xmlns="http://xml.webshop.com/APALSS_100_2_1A">
<orFiltersQuery>
<dummy/>
<andFiltersQuery>
<passengerListFilterName>
<attributeDetails>
<attributeType>Jain</attributeType>
</attributeDetails>
</passengerListFilterName>
</andFiltersQuery>
</orFiltersQuery>
<orFiltersQuery>
<dummy/>
<andFiltersQuery>
<passengerListFilterName>
<attributeDetails>
<attributeType>BAG</attributeType>
</attributeDetails>
</passengerListFilterName>
<filterIndicator>
<statusInformation>
<indicator>FNI</indicator>
</statusInformation>
</filterIndicator>
</andFiltersQuery>
</orFiltersQuery>
</DCSLST_GetPassengerListReply>
</soap:Body>
</soap:Envelope>

 

Property transfer:

//soap:Envelope/soap:Body/DCSLST_GetPassengerListReply this one used

 

getting error as Tue Jul 26 06:07:00 BST 2016 DCSLST_GetPassengerListReply [net.sf.saxon.trans.XPathException: XPath syntax error at char 15 in {//soap:Envelope/soap:Body}:
Prefix soap has not been declared]

 

I need to get the below part xml to next request from the response

 

<DCSLST_GetPassengerListReply xmlns="http://xml.webshop.com/APALSS_100_2_1A">
<orFiltersQuery>
<dummy/>
<andFiltersQuery>
<passengerListFilterName>
<attributeDetails>
<attributeType>Jain</attributeType>
</attributeDetails>
</passengerListFilterName>
</andFiltersQuery>
</orFiltersQuery>
<orFiltersQuery>
<dummy/>
<andFiltersQuery>
<passengerListFilterName>
<attributeDetails>
<attributeType>BAG</attributeType>
</attributeDetails>
</passengerListFilterName>
<filterIndicator>
<statusInformation>
<indicator>FNI</indicator>
</statusInformation>
</filterIndicator>
</andFiltersQuery>
</orFiltersQuery>
</DCSLST_GetPassengerListReply>

 

 

kindly help me to get this .

 

Thanks

sathya

 

 

 

  • Try below xpath

     

    //*:DCSLST_GetPassengerListReply
  • working fine awesome super :heart::smileyhappy:

  • nmrao's avatar
    nmrao
    Champion Level 3

    Try below xpath

     

    //*:DCSLST_GetPassengerListReply
    • sathyaraj's avatar
      sathyaraj
      Occasional Contributor

      working fine awesome super :heart::smileyhappy: