Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Connection problem in SOAP Sender Channel

Dear All,

I have created two SOAP Sender channel with the following specification:

Transport Protocol - HTTP

Message Protocol - SOAP 1.1

HTTP Security Level - HTTP

But while sending a message from a Java client, I am getting the following error :

The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Basic realm="XISOAPApps"'.

Please suggest if you find any way out.

Thanks and Regards,

Rana Brata De


Former Member
Former Member replied

Hi Rana

Looks like you have used authentication scheme as 'anonymous'. But you have chosen the option 'HTTP' in soap adapter.

So you have to pass the user id and password during the call.

Sample Code:

ICalcCTCWebService calcCTCWebService = calcCTCWebServiceImplServiceLocator.getCalcCTCWebServiceImplPort();

Stub stub = (Stub)calcCTCWebService;

stub._setProperty(Stub.USERNAME_PROPERTY, "abc");

stub._setProperty(Stub.PASSWORD_PROPERTY, "xyz");

You can also test the WSDL from SOAP UI and provide user name and password in the header section in SOAP UI and see if the message goes to PI or not.

You can also try the below option in the sender soap adapter and see if it works or not.

1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question