Skip to main content
14-Alexandrite
May 20, 2019
Question

How to pass XML file as input for post XML

  • May 20, 2019
  • 1 reply
  • 1468 views

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.

1 reply

Community Manager
May 20, 2019

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

14-Alexandrite
May 28, 2019

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