IBM Support

Invalid SOAP Message - Envelope element is missing

Troubleshooting


Problem

Customer was trying to receive an inbound soap message from their trading partner.

Symptom

Error in the logs:
ERROR RealiableMessageIdentifier, fail to get content of the mime message Invalid SOAP Message - Envelope element is missing.
ERROR [1507559518042] Invalid SOAP Message - Envelope element is missing

Cause

The inbound document was missing the soap headers

Primary document looked like the following:


Process Name: SOA_MessageHandler Instance ID: 112233
Service Name: XXDecisionService_Instance
Document Name: PsHttpDocument_node1_20171006130040944 Document
Store: Database
Document ID: 26594826ef2a03458node1
Document in process data: application/octet-stream
Host:9.99.99.999:9999
Content-Type:text/xml
Transfer-Encoding:chunked
Connection:close
URI:/soap

<?xml version="1.0" encoding="UTF-8"?>
<ns0:Data_MT xmlns:ns0="urn:noplace.com:infantline">
<EXPLANT_CODE>RRG1</EXPLANT_CODE>
<DATA_TYPE>LIQUID</DATA_TYPE>
<ApplicationDetail_DT>
<Line>999999999999999999999999999999999999999999999999</Line>
</ApplicationDetail_DT>
</ns0:Data_MT>

Resolving The Problem

The primary document that is being received does not contain the soap envelope element, so it is just another XML message.

The SOAP document should be in the below format.:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
</soapenv:Header>
<soapenv:Body>
:
:
</soapenv:Body>
</soapenv:Envelope>

[{"Product":{"code":"SS3JSW","label":"IBM Sterling B2B Integrator"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Adapters","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF014","label":"iOS"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
20 November 2019

UID

swg22009494