SAP Knowledge Base Article - Public

3831936 - Outbound SOAP message unexpectedly sent as MIME/MTOM (application/xop+xml) wrapper instead of plain SOAP/XML in SAP S/4HANA Cloud Public Edition

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 with application/xop+xml content 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

  1. Send an outbound Scheduling Agreement Release message via MMSAR-SARREQOUT using communication scenario SAP_COM_0445 from a test system.
  2. 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

  1. Open the Communication Arrangements Fiori app.
  2. Locate the affected Communication Arrangement, for example, the arrangement for SAP_COM_0445 that contains the affected outbound service.
  3. Record the existing configuration details, including the Communication System, outbound service URL, authentication settings, and ports, so that the same configuration can be restored.
  4. Delete the affected Communication Arrangement.
  5. Create the Communication Arrangement again for the same communication scenario and re-enter the previously recorded configuration settings.
  6. Trigger the outbound message again and verify the transmitted payload.
  7. 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