cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass XML file as input for post XML

Amethyst

How to pass XML file as input for post XML

I have a SOAP input in postXML snippet and get output as XML.

How to pass the input in XML format? Is there any usecase you share.

 

When I pass the input as XML I am getting error as "DOCTYPE is disallowed when the feature "http://apache.org/xml/features/disallow-doctype-decl" set to true.

Tags (2)
3 REPLIES 3

Re: How to pass XML file as input for post XML

Hi @Yedukrishnan.

 

Without seeing your input, it sounds like this article may explain the issue.  If you are unable to resolve the issue after reviewing this, please provide your xml and any new errors you're receiving.

 

Regards.

 

--Sharon

Re: How to pass XML file as input for post XML

HI @slangley,

 

The XML does not contain any doctype in the request or response. I have attached the input for your reference.

Request:

 

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:iot="http://IOTBOXSTOCK.com">
<soapenv:Header/>
<soapenv:Body>
<iot:IOTBOXSTOCK_MT>
<I_INPUT>
<!--Zero or more repetitions:-->
<item>
<!--Optional:-->
<CHARG>H56190517</CHARG>
</item>
<item>
<!--Optional:-->
<CHARG>H56190516</CHARG>
</item>

</I_INPUT>
</iot:IOTBOXSTOCK_MT>
</soapenv:Body>
</soapenv:Envelope>

 

With regards

Yedukrishnan

 

Highlighted

Re: How to pass XML file as input for post XML

Hi @Yedukrishnan.

 

You might want to try using the Developer tools (F12) to see if anything is being added in your .xml.  If you have any questions on this, please refer to this article, though it is a couple of years old so some things may have changed.

 

Regards.

 

--Sharon