AnsweredAssumed Answered

INVALID XML FORMAT: Content is not allowed in prolog

Question asked by Ritik Saxena on Jan 27, 2020
Latest reply on Jan 29, 2020 by Dave Ferguson

I'm trying to call the api create/was/webapp with the following payload -

 

<ServiceRequest>
<data>
<WebApp>
<name>Application</name>
<url>https://X.X.X.X</url>
<uris><set><Url>https://X.X.X.X</Url></set></uris>
<defaultScanner>
<type>INTERNAL</type>
<friendlyName>SCANNER</friendlyName>
</defaultScanner>
</WebApp>
</data>
</ServiceRequest>

 

but the response I get is -

 

<?xml version="1.0" encoding="UTF-8"?>\n<ServiceResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://qualysapi.qg1.apps.qualys.in/qps/xsd/3.0/was/webapp.xsd">

<responseCode>INVALID_XML</responseCode>

<responseErrorDetails>

<errorMessage>Invalid XML format: Content is not allowed in prolog.</errorMessage>

</responseErrorDetails>

</ServiceResponse>

 

Not sure what I'm doing wrong. Please help.

Outcomes