Skip to Content
avatar image
Former Member

Set Username and password

Dear All,

We are stuck in one of the scenario where we need to add Username and Password in SOAP request itself through code as below,

<soapenv:Header>

<urn:AuthenticationInfo>

<urn:userName>ABC</urn:userName>

<urn:password>XYZ</urn:password>

<!--Optional:-->

<urn:authentication>?</urn:authentication>

<!--Optional:-->

<urn:locale>?</urn:locale>

<!--Optional:-->

<urn:timeZone>?</urn:timeZone>

</urn:AuthenticationInfo>

</soapenv:Header>

Now what changes we need to do to in Sender Agreement / SAP PI to make such authentication work ?

Regards,

Alex

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Nov 02, 2015 at 04:01 PM

    Hi Alex,

    Have you tried another method of handling authentication by providing credentials over the url although not a very good approach. SOAP client needs to add the credentials in the below format (bold letters) while calling the webservice.

    http:// <host name> : <port name> /XISOAPAdapter/MessageServlet?senderParty= <name of the sender party> &senderService= <name of the sender service> &interface= <name of the interface> &receiverParty= <name of the receiver party> &receiverService= <name of the receiver service> &interfaceNamespace= <name of the interface namespace>&j_username=<UserName>&j_password=<Password>

    Regards,

    Karthik


    Add comment
    10|10000 characters needed characters exceeded

  • Nov 02, 2015 at 02:23 PM

    Hello Alex.

    Add Custom soap header using XSLT or Module beans

    For XSLT

    For Module Beans

    "AddSOAPHeaderBean" module

    Add comment
    10|10000 characters needed characters exceeded