Skip to Content
author's profile photo Former Member
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,













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



Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on 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>



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.