SAP ERP Provider Proxy (generated from PI ESR) – PI-REST-Adapter endpoint with JSON-Message-Mapping

 

Hello everyone,
I am facing the following problem:

The following objects have been created in namespace A in SAP PI

  • datatypes
  • messagetypes
  • service-interface

in order to generate an ABAP provider proxy in the ERP.

If the generated endpoint is addressed via Postman, the JSON request (adapter type SYNCHRON) is correctly received according to the ERP-transaction SRT_UTIL trace.
However, the response (adapter type SYNCHRON) fails with an HTTP error 415 (unsupported media type), although “Content-Type = application/json” is also sent in the HTTP header.

However, this is not my biggest problem, but a REST endpoint (REST sender adapter) is to be provided in namespace B in the PI, which accepts a different structure than what is generated in the ERP.
The message mapping is set up, the request arrives in the ERP, but a SOAP exception is triggered for the response.

 

-soap-env:Envelope
->xmlns:soap-env http://schemas.xmlsoap.org/soap/envelope/
–soap-env:Header
–soap-env:Body
—soap-env:Fault
—-faultcode soap-env:Server
—-faultstring Fehler bei der Web-Service-Verarbeitung; Weitere Details im Web-Service-Fehlerprotokoll auf Provider-Seite (UTC-Zeitstempel 2024
—->lang de
—-detail

 

In the SRT_UTIL trace, the adapter type for the request is also SYNCHRON, for the response MIXED (WS_RM).

The integration flow is:

REST adapter (sender) -> message mapping -> SOAP adapter

 

Does anyone have a suggestion as to which adapter-specific settings for the REST communication channel need to be entered for it to work?

 

Many thanks in advance!

Scroll to Top