SAP Knowledge Base Article - Preview

3842136 - Unauthorized error in REST Receiver Channel when using Basic Authentication

Symptom

A REST Receiver channel was configured with Basic Authentication. 

When calling the target endpoint, the below error is thrown:

"HTTP POST call to http://<host>:<port>/  not successful. Unauthorized"

The following can be seen in the HTTP logs:

HTTP_CLIENT : 300 REQUEST:

POST target_endpoint HTTP/1.1..Content-Type: application/xml..User-Agent: SAP HttpClient v1.0..Host: <host>:<port>..Content-Length: 387...

Authorization required
Supported authentication schemes in the order of preference: [Basic, Digest, NTLM]
Challenge for Basic authentication scheme not available
Challenge for Digest authentication scheme not available
Challenge for NTLM authentication scheme not available
Unable to respond to any of these challenges: {bearer=Bearer}

HTTP_CLIENT : 300 REPLY:

HTTP/1.1 401 Unauthorized ..Cache-Control: no-cache..Pragma: no-cache..Expires: -1..Server: Microsoft-IIS/7.5..X-AspNet-Version: 4.0.30319..WWW-Authenticate: Bearer ..X-Powered-By: ASP.NET..


Read more...

Environment

SAP NetWeaver 7.50

Product

SAP NetWeaver 7.5

Keywords

NTLM, Unauthorized, PI, PO, Process Orchestration, Process Integration, Basic Authentication, HTTP Client , KBA , BC-XI-CON-RST , Rest Adapter , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.