Skip to Content
avatar image
Former Member

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


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 12, 2014 at 06:12 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 12, 2014 at 05:22 AM

    Hi Rana,

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

    REgards,

    Mastan vali

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 12, 2014 at 05:52 AM

    Dear Rana da,

    Basic authentication requires Transport security.

    I think you must use Https.

    Add comment
    10|10000 characters needed characters exceeded