Symptom
- An outbound SOAP web service message, such as the Scheduling Agreement Release outbound service configured through communication scenario SAP_COM_0445, is unexpectedly sent as a MIME/MTOM multipart message.
- The receiving B2B or partner system expects a plain SOAP/XML message starting with
<soap-env:Envelope>, but instead receives a MIME boundary withapplication/xop+xmlcontent before the SOAP envelope. - The SOAP message does not contain any binary attachment or
<xop:Include>element, but is nevertheless transmitted using MTOM/XOP packaging. - The behavior differs between tenants on the same release with the same communication scenario and apparently identical Communication Arrangement configuration. One tenant sends plain SOAP/XML, while another sends the message in MIME/MTOM format.
- No configuration change was knowingly made that explains the difference.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Send an outbound Scheduling Agreement Release message via MMSAR-SARREQOUT using communication scenario SAP_COM_0445 from a test system.
- Inspect the outbound HTTP headers/body: Content-Type is application/xop+xml; the SOAP envelope is wrapped in a MIME multipart with boundaries, instead of plain text/xml.
Cause
- The MTOM/Optimized XML Transfer (
application/xop+xml) behavior is controlled by the SOAP runtime binding or logical port that is automatically generated when the Communication Arrangement is created. - The generated runtime binding is not visible or editable in the Communication Arrangement UI in SAP S/4HANA Cloud Public Edition.
- If the underlying logical port or service binding is generated in an inconsistent state, for example, due to a transient generation issue during the creation of the Communication Arrangement, the outbound runtime may enable MTOM/XOP packaging even when no binary attachment is present.
- The inconsistency resides in the generated runtime binding and is not reflected in the visible Communication Arrangement configuration.
- As a result, two tenants can exhibit different outbound SOAP behavior despite having the same release, communication scenario, and apparently identical Communication Arrangement configuration.
Resolution
- Open the Communication Arrangements Fiori app.
- Locate the affected Communication Arrangement, for example, the arrangement for SAP_COM_0445 that contains the affected outbound service.
- Record the existing configuration details, including the Communication System, outbound service URL, authentication settings, and ports, so that the same configuration can be restored.
- Delete the affected Communication Arrangement.
- Create the Communication Arrangement again for the same communication scenario and re-enter the previously recorded configuration settings.
- Trigger the outbound message again and verify the transmitted payload.
- After the Communication Arrangement is recreated, the outbound SOAP runtime binding is regenerated. The message should then be transmitted as plain SOAP/XML without the MIME/MTOM/XOP wrapper.
Keywords
MTOM, XOP, application/xop+xml, MIME wrapper, optimised XML transfer, outbound SOAP, SOAP web service, scheduling agreement release, SAP_COM_0445, communication arrangement, logical port, service binding, recreate communication arrangement, plain SOAP XML, B2B, EDI outbound, MM-PUR-GF-EDI-2CL, S4HANA Cloud Public Edition, test vs production difference, MTON, xop+xml , KBA , MM-PUR-GF-EDI-2CL , Electronic Data Interchange (Public Cloud) , How To
Product
SAP S/4HANA Cloud Public Edition all versions
SAP Knowledge Base Article - Public