Philippe_Lebacq
15 years agoContributor
Property transfer with ns problem
Can you help me with the syntax in a property transfer from xml response to testcase property?
Thanks in advance, Philippe.
This works:
<soapenv:Body>
<claimAttachmentReply>
<attachmentID>3520</attachmentID>
</claimAttachmentReply>
</soapenv:Body>
//claimAttachmentReply/attachmentID
but I cannot make it work for:
<soapenv:Body>
<ns1:claimAttachmentReply xmlns:ns1="https://cwssoap.toyota-europe.com/cws/services/claim_attachment/1.xsd">
<ns2:claimIdentification xmlns:ns2="https://cwssoap.toyota-europe.com/cws/services/claim_attachment/1.xsd" xmlns="https://cwssoap.toyota-europe.com/cws/services/cws_global/1.xsd">
<ns1:cwsClaimCode xmlns:ns1="https://cwssoap.toyota-europe.com/cws/services/cws_global/1.xsd">809835</ns1:cwsClaimCode>
<ns3:nmscCode xmlns:ns3="https://cwssoap.toyota-europe.com/cws/services/cws_global/1.xsd">94102</ns3:nmscCode>
</ns2:claimIdentification>
<ns2:attachmentID xmlns:ns2="https://cwssoap.toyota-europe.com/cws/services/claim_attachment/1.xsd" xmlns="https://cwssoap.toyota-europe.com/cws/services/cws_global/1.xsd">3520</ns2:attachmentID>
</ns1:claimAttachmentReply>
</soapenv:Body>
Thanks in advance, Philippe.
This works:
<soapenv:Body>
<claimAttachmentReply>
<attachmentID>3520</attachmentID>
</claimAttachmentReply>
</soapenv:Body>
//claimAttachmentReply/attachmentID
but I cannot make it work for:
<soapenv:Body>
<ns1:claimAttachmentReply xmlns:ns1="https://cwssoap.toyota-europe.com/cws/services/claim_attachment/1.xsd">
<ns2:claimIdentification xmlns:ns2="https://cwssoap.toyota-europe.com/cws/services/claim_attachment/1.xsd" xmlns="https://cwssoap.toyota-europe.com/cws/services/cws_global/1.xsd">
<ns1:cwsClaimCode xmlns:ns1="https://cwssoap.toyota-europe.com/cws/services/cws_global/1.xsd">809835</ns1:cwsClaimCode>
<ns3:nmscCode xmlns:ns3="https://cwssoap.toyota-europe.com/cws/services/cws_global/1.xsd">94102</ns3:nmscCode>
</ns2:claimIdentification>
<ns2:attachmentID xmlns:ns2="https://cwssoap.toyota-europe.com/cws/services/claim_attachment/1.xsd" xmlns="https://cwssoap.toyota-europe.com/cws/services/cws_global/1.xsd">3520</ns2:attachmentID>
</ns1:claimAttachmentReply>
</soapenv:Body>