AnsweredAssumed Answered

How to unpack a nested argument inside the value?CDATA

Question asked by hartojoe on Oct 22, 2015

Hi everyone I have a Soap request/reponse pair that I'd like to virtualize, however I'm having an issue with the arguments that are being recorded. For example:

 

In the request, I have:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pan="http://wsdl.echelon.com/Panoramix/">

    <soapenv:Header/>

    <soapenv:Body>

       <pan:RetrieveList>

          <sXmlParameters><![CDATA[

          <PARAMETERS>

            <DATACONTENTRETURNTYPID>c6ce34a3b0f54e45a106b5b429858b73</DATACONTENTRETURNTYPID>

             <DEVICES>

               <DEVICE>

              <!--  <ID>c5a0c3c89cd9449f8b3808c03134a0f4</ID>

             

                 <NAME>

                  <VALUE>100212875-E2L-NC01SC01</VALUE>

                  <MATCHTYPEID>6d7a4195d4ce44ccbd7f5bd6f41fddeb</MATCHTYPEID>

                  </NAME>

               --> 

                  <SERIALNUMBER>

                   <VALUE>L27100212875L10</VALUE>

                   <MATCHTYPEID>6d7a4195d4ce44ccbd7f5bd6f41fddeb</MATCHTYPEID>

                  </SERIALNUMBER>

                   </DEVICE>

              </DEVICES>

            </PARAMETERS>

         ]]> </sXmlParameters>

       </pan:RetrieveList>

    </soapenv:Body>

</soapenv:Envelope>

 

 

The ONLY argument that is being recorded is sXmlParameters and its value contains:

<PARAMETERS>

             <DATACONTENTRETURNTYPID>c6ce34a3b0f54e45a106b5b429858b73</DATACONTENTRETURNTYPID>

              <DEVICES>

                <DEVICE>

               <!--  <ID>c5a0c3c89cd9449f8b3808c03134a0f4</ID>

              

                  <NAME>

                   <VALUE>100212875-E2L-NC01SC01</VALUE>

                   <MATCHTYPEID>6d7a4195d4ce44ccbd7f5bd6f41fddeb</MATCHTYPEID>

                   </NAME>

                --> 

                   <SERIALNUMBER>

                    <VALUE>L27100212875L10</VALUE>

                    <MATCHTYPEID>6d7a4195d4ce44ccbd7f5bd6f41fddeb</MATCHTYPEID>

                   </SERIALNUMBER>

                            

                 </DEVICE>

               </DEVICES>

             </PARAMETERS>

 

My question is how do you break the arguments inside the value in DevTest? Let's say I want to have a different response if the <VALUE> inside SERIALNUMBER is invalid?

 

Thank you.

Outcomes