Service Virtualization

  • 1.  XML markup issue

    Posted Mar 27, 2017 05:06 AM

    Hi all,looking for some help

    i am have Create VS by requesting a response packet, and there are two <? Xml version = "1.0" encoding = "UTF-8"?>, Which do not recognize the parameter.

    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
      <dealServ xmlns="http://publicfacade.servintf.sunrise.com/">
      <arg0 xmlns="">
        <dealkind>0</dealkind>
        <operator>admin</operator>
      <params>
      <?xml version="1.0" encoding="UTF-8"?>
      <NGBOSS>
             ......
           </NGBOSS>
           </params>
           <password>password</password>
           <zipFlag>false</zipFlag>
           <timeOut>30000</timeOut>
           </arg0>
           </dealServ>
       </soapenv:Body>
     </soapenv:Envelope>



  • 2.  Re: XML markup issue

    Posted Mar 27, 2017 09:26 AM

    The XML you're showing is invalid. An xml declaration, the <?xml> tag, can only be included in the first line of the XML. If this is the request, it will cause an error because DevTest has to parse the request. You could probably use this as a response. You may see a complaint about invalid XML in a log file, but the response is sent.



  • 3.  Re: XML markup issue

    Posted Mar 27, 2017 12:06 PM

    BrianNivens4455398 is correct.  Sometimes, you will see the second XML document either embedded inside an CDATA[ tag or the inner document will encode the left "<" with an encoding of &lt; for the second document.