Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
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.
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
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
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