Skip to Content

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

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 ?



Former Member

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>



0 View this answer in context

Helpful Answer

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