Skip to main content

         This documentation site is for previous versions. Visit our new documentation site for current releases.      

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.

Troubleshooting: Connect SOAP error “SOAP Envelope cannot have children other than SOAP Header and Body"

Updated on October 2, 2015

You create a Connect SOAP rule that calls an external SOAP service. On the Advanced tab of the Connect SOAP rule, you select the Enable ws-security check box to enable Web Services Security (WS-Security), because you want to securely move the SOAP messages to and from your application. You also create a Security Profile with a Truststore and a Keystore.

Connect SOAP Enable WS-Security

However, when you run the Connect SOAP rule, you see the following error message:

“SOAP Envelope cannot have children other than SOAP Header and Body".

Refer to the section below for additional error message details.

Error PRRuntimeError
  at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.


Caused by: SOAP service failed
  at com.pegarules.generated.activity.ra_action_invokeaxis2_



Caused by: com.pega.apache.axiom.soap.SOAPProcessingException: SOAP Envelope can not have children other than SOAP Header and Body
  at com.pega.apache.axiom.soap.impl.dom.SOAPEnvelopeImpl.checkChild

  at com.pega.apache.axiom.soap.impl.dom.SOAPEnvelopeImpl.insertBefore






This error occurs in PRPC 6.x and Pega 7 releases up through Pega 7.1.7 when you enable Web Services Security (WS-Security) on a SOAP connector, without also enabling Web Services Addressing (WS-Addressing). Without WS-Addressing enabled, the security headers are incorrectly missing from the Connect SOAP request.

Suggested approach

This issue is scheduled to be fixed in Pega 7.1.8.

If you are using PRPC 6.x or a Pega 7 release up through Pega 7.1.7, you can resolve this issue by selecting the Enable ws addressing check box on the Advanced tab of the Connect SOAP rule. This ensures that the security-related data included in the SOAP header is sent and processed appropriately.

Connect SOAP Enable WS-Addressing

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best. is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us