SAP Knowledge Base Article - Public

3263448 - The error "HTTP Code 401" is Displayed for an eDocument - SAP S/4HANA Cloud Public Edition

Symptom

The error "Proxy error SOAP:1032 SRT: Wrong Content-Type and empty HTTP-B: ody received: ("HTTP Code 401  : ")" or "Proxy error SOAP:1032 SRT: Wrong Content-Type and empty HTTP-B: ody received: ("HTTP Code 302 : Redirect")" are displayed for an eDocument in the eDocument Cockpit app

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Go to the eDocument Cockpit app.
  2. Select Source Document ABC (where ABC represents the Source Document ID).
  3. Select Go To... -> Application log.

The error "Proxy error SOAP:1032 SRT: Wrong Content-Type and empty HTTP-B: ody received: ("HTTP Code 401  : ")" is displayed.

The error "Proxy error SOAP:1032 SRT: Wrong Content-Type and empty HTTP-B: ody received: ("HTTP Code 302 : Redirect")" is displayed 

Cause

Broken communication - Service URL.

Resolution

To be able to communicate with external systems, set up integration scenarios using integration packages. Procedure:

  1. Access the SAP API Business Hub.
  2. Search for the integration package SAP Document and Reporting Compliance: Electronic Invoicing and select the document related to your country solution.
  3. Use overview and the documents to guide the settings to enable the scenario.

Additional Tips:

  • Identify where URL is redirecting to.
  • Update the endpoint URL to the exact final URL, so SAP calls it directly without any redirect in between.
  • Review Communication Systems app → open the relevant Communication System → update the host/path to the correct final URL
  • Ensure HTTPS — confirm the URL starts with https://, not http://.
  • Re-test the connection in Communication System "Check Connection"

See Also

For information, search for SAP Cloud Integration or SAP Integration Suite on the Help Portal.

Keywords

Communication Arrangement, eDocument cockpit, http:500, external systems, integration packages, eInvoice, unauthorized. , KBA , CA-GTF-CSC-EDO , Electronic Document Processing Framework , How To

Product

SAP S/4HANA Cloud Public Edition all versions