cancel
Showing results for 
Search instead for 
Did you mean: 

Connection problem in SOAP Sender Channel

former_member200339
Participant
0 Kudos

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


Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (2)

Answers (2)

Former Member
0 Kudos

Dear Rana da,

Basic authentication requires Transport security.

I think you must use Https.

Former Member
0 Kudos

Hi Rana,

from the error it clearly tells that there is some authentication issue, does the user has sufficient roles/autorisations??

REgards,

Mastan vali