Lakshmaiah
12 years agoNew Contributor
How to Transfer the properties
Hello !!
I am trying to use the property Transfer option in the SoapUI 4.5.2. When it is simple XML response it is working fine.
I am just defining the namespace and and accessing the value by the index. for Example...
declare namespace ns1='http://xml.abcdef.com/CCPRRR_12_9_1A';//ns1:surname[1]
But I am facing problem when the same set of elements come at different levels. I tried different ways as suggested in the web. However it is ending up as mismatch in target. Please help to resolve this.
Here is the sample XML response I am refering. In this idSection is repeating at different levels. How to copy the values of primeId of this response. Please help me to give the text to be placed in the property transfer section.
XML Response
<soapenv:Body>
<PAXIDC_RECIdentificationReply xmlns="http://xml.abcdef.com/CRECRR_12_9_1A">
<customerLevel>
<customerDetails>
<paxDetails>
<surname>POLISETTI</surname>
<type>A</type>
</paxDetails>
<otherPaxDetails>
<givenName>LAKSHMAIAH</givenName>
</otherPaxDetails>
</customerDetails>
<uniqueCustomerId>
<idSection>
<referenceQualifier>UCI</referenceQualifier>
<primeId>241634180017BF5B</primeId>
</idSection>
</uniqueCustomerId>
<sourceIndicator>
<selectionDetails>
<option>REC</option>
</selectionDetails>
</sourceIndicator>
<recordLocator>
<reservation>
<companyId>AB</companyId>
<controlNumber>ZXFHON</controlNumber>
</reservation>
</recordLocator>
<productLevel>
<operatingFlightDetails>
<carrierDetails>
<marketingCarrier>XY</marketingCarrier>
</carrierDetails>
<flightDetails>
<flightNumber>745</flightNumber>
</flightDetails>
<departureDate>20130701</departureDate>
<boardPoint>NRT</boardPoint>
<offPoint>MNL</offPoint>
</operatingFlightDetails>
<productIdentifiers>
<idSection>
<referenceQualifier>DID</referenceQualifier>
<primeId>242044160000D93D</primeId>
</idSection> </productIdentifiers>
</productLevel>
</customerLevel>
</PAXIDC_RECIdentificationReply>
</soapenv:Body>
</soapenv:Envelope>
I am trying to use the property Transfer option in the SoapUI 4.5.2. When it is simple XML response it is working fine.
I am just defining the namespace and and accessing the value by the index. for Example...
declare namespace ns1='http://xml.abcdef.com/CCPRRR_12_9_1A';//ns1:surname[1]
But I am facing problem when the same set of elements come at different levels. I tried different ways as suggested in the web. However it is ending up as mismatch in target. Please help to resolve this.
Here is the sample XML response I am refering. In this idSection is repeating at different levels. How to copy the values of primeId of this response. Please help me to give the text to be placed in the property transfer section.
XML Response
<soapenv:Body>
<PAXIDC_RECIdentificationReply xmlns="http://xml.abcdef.com/CRECRR_12_9_1A">
<customerLevel>
<customerDetails>
<paxDetails>
<surname>POLISETTI</surname>
<type>A</type>
</paxDetails>
<otherPaxDetails>
<givenName>LAKSHMAIAH</givenName>
</otherPaxDetails>
</customerDetails>
<uniqueCustomerId>
<idSection>
<referenceQualifier>UCI</referenceQualifier>
<primeId>241634180017BF5B</primeId>
</idSection>
</uniqueCustomerId>
<sourceIndicator>
<selectionDetails>
<option>REC</option>
</selectionDetails>
</sourceIndicator>
<recordLocator>
<reservation>
<companyId>AB</companyId>
<controlNumber>ZXFHON</controlNumber>
</reservation>
</recordLocator>
<productLevel>
<operatingFlightDetails>
<carrierDetails>
<marketingCarrier>XY</marketingCarrier>
</carrierDetails>
<flightDetails>
<flightNumber>745</flightNumber>
</flightDetails>
<departureDate>20130701</departureDate>
<boardPoint>NRT</boardPoint>
<offPoint>MNL</offPoint>
</operatingFlightDetails>
<productIdentifiers>
<idSection>
<referenceQualifier>DID</referenceQualifier>
<primeId>242044160000D93D</primeId>
</idSection> </productIdentifiers>
</productLevel>
</customerLevel>
</PAXIDC_RECIdentificationReply>
</soapenv:Body>
</soapenv:Envelope>