Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Error SOAP message MUST NOT contain a Document Type Declaration"



When execute the connect soap following error we are getting after sending the request
SOAP message MUST NOT contain a Document Type Declaration(DTD)

Error Messages

More details from log

2014-08-15 12:42:40,866 [] [ STANDARD] [ application:00.00.00] (ngineinterface.service.HttpAPI) ERROR server|ip PRRuntimeError
at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(
at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.runActivitiesAlt(
at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.runActivities(
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequestInner(
at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
Caused by: SOAP service failed
Caused by: SOAP message MUST NOT contain a Document Type Declaration(DTD)
at com.pega.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createDTD(
at com.pega.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(
at com.pega.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(
at com.pega.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(
at com.pega.apache.axis2.builder.BuilderUtil.getSOAPBuilder(
at com.pega.apache.axis2.transport.TransportUtils.createDocumentElement(
at com.pega.apache.axis2.transport.TransportUtils.createSOAPMessage(
at com.pega.apache.axis2.transport.TransportUtils.createSOAPMessage(
... 60 more

Steps to Reproduce

Invoke the SOAP connector in PRPC

Root Cause

The request header is missing


Passing the header to the request using XML stream rule
Suggest Edit

Published November 6, 2015 - Updated October 8, 2020

Did you find this content helpful? Yes No

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us