cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP Adapter - HTTP 401

Former Member
0 Kudos

Hi all,

i'm pretty new to SAP-PI and need some help.

We have following asynchronous scenario : XI-Adapter >>>  XI >>> SOAP-Adapter to transfer data from ERP to a 3rd Party-System.

After some changes by the Web-Service-Provider ( certificate & user creditentials) we get a HTTP 401 - Unauthorized Error.

What we did:

  1. imported the new certificate
  2. set the new creditentials in the communication channel for authentification


Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi,

Hope certificate you are using is correct one, else this error won't be occurring in your system.

Regards

Avichal

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi all,

problem is solved!

At least it was a certificate issue. The new certificate was signed by another CA.

So we had to import the whole certificate-chain and everything worked again.

Thank for all your replies!

Regards Kai

Former Member
0 Kudos

Hi,

many thank for your quick responses!

Yesterday evening i decided to do a full cache refresh. Now i am receiving following error:

Error in call over HTTP: HTTP 0 null

[EXCEPTION]

java.io.Exception: Failed to get the input stream from socket: iaik.security.ssl.SSLCertificateException: Peer certificate rejected by ChainVerifier...

After that i tried to set the parameter

     Module key: soap

     paramname: trustStore

     paramvalue: TrustedCAs

for the the module XISOAPAdapterBean in the CC,  but i'm still receiving the same error.

So i think something is wrong with the new certificate. Our Basis-Team is checking this atm.

Regards

Kai

Former Member
0 Kudos

Hi Kai,     Do you face this error in each message? or randomly?

Try to follow this solution, this one solve some of the http issues like the 503 and 401

http://service.sap.com/sap/support/notes/1945745

markangelo_dihiansan
Active Contributor
0 Kudos

Hi,

Can you check if you are using dynamic configuration to set the URL? There is a bug wherein if you use DC to set the URL, you also need to set the username/password via DC (Authentication Keys: TAuthKey) if the webservice requires it.

Regards,

Mark

Former Member
0 Kudos

Hi Kai,

On what version of PI are you? Single stack or Dual stack?

Regards,

Jannus Botha

Former Member
0 Kudos

Hi Jannus,

we are on SAP PI 730, SP9 , Dual Stack

Regards

Kai

iaki_vila
Active Contributor
0 Kudos

Hi Kai,

If you have imported the credentials in the ABAP stack, try to restart the ICM server.

Regards.