cancel
Showing results for 
Search instead for 
Did you mean: 

how to add the username and password into the WSDL

Former Member
0 Kudos

I define a web service through XI with the WSDL file. And I gave the WSDL file, the username and the password to the customer to visit the defined service. Anyhow I don't want the customer to worry about the authentication ,the username and password and I want to add the username and password information into the WSDL file. However I have no idea how to deal with this and I hope some body can give me the idea.

Thanks in advance.

Alex

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

This is not possible.

Regards

Stefan

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

One option to do this would be to turn of all Authentication for SOAP calls like shown in this according to William Li's Answer.

But, it is not a feasible solution.

@ Stefan~

I didnt know that adding user Id and password to the SOAP Url will not work, but, isnt this a feature that would be truely useful?

Any workarounds or any reason that this doesn't work. Your comments will be really helpful.

Regards,

Bhavesh

stefan_grube
Active Contributor
0 Kudos

You can use the HTTP adapter, there you can add the user and password in the URL. But in this case you have to remove the SOAP envelope by mapping.

Regards

Stefan

bhavesh_kantilal
Active Contributor
0 Kudos

Stefan,

Using Sender HTTP adapter would surely do the trick like you mentioned. Didn't think of that.

Thanks.

Bhavesh

stefan_grube
Active Contributor
0 Kudos

You can use the SOAP entry of the Integration Server and add the user and password like this:

"http://pwdf2153.wdf.sap.corp:8000/sap/xi/engine?type=entry&version=3.0&Sender.Service=Stefan&Interface=http%3A%2F%2Fsap.com%2Fxi%2FDemo%2FBPM%2FCase01%5EFlightSeatAvailabilityQuery_Out&sap-user=<user>&sap-password=<password>"

Stefan

Former Member
0 Kudos

Based on SAP doc, I use http://host:j2eeport/.

that is http://xidev:50000/.

how come stefan you use http URL to response the SOAP requirst?

alex

stefan_grube
Active Contributor
0 Kudos

Check this blog:

/people/stefan.grube/blog/2006/09/21/using-the-soap-inbound-channel-of-the-integration-engine

Answers (3)

Answers (3)

Former Member
0 Kudos

>>if I add the user and the password at the end of the URL with the '&' to devided, the sender program still requires user and password. It seems to make no sense of the added user information.

My suggestion was to add the usename and password inside the WSDL file and not to the channel URL.

Former Member
0 Kudos

The WSDL file is generated by the ID automaticly. I have no idea how to add the user information into the WSDL file. Could you please give me some samples of this way.

Thank you in advance.

alex.

dhagigeorgiou
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Bu Ju,

I seem to be having the same problem as you.

Did you ever solver your problem?

Would it be possible to give an idea of how do this?

Thanks in advance

Dimitris

Former Member
0 Kudos

please follow the reply before your post. That is a reasonable way.

BJ

former_member187339
Active Contributor
0 Kudos

Hi,

You can set them in the application from where you are calling this wsdl...

https://forums.sdn.sap.com/click.jspa?searchID=-1&messageID=463025

https://weblogs.sdn.sap.com/pub/wlg/2131 [original link is broken] [original link is broken] [original link is broken] [original link is broken]

Regards

Suraj

Former Member
0 Kudos

Hi Alex,

Refer the following link

Solution:

try adding the following string to your wsdl:

@sap-user=<your_loginId>&sap-password=<your_password>

Example http://localhost:8001/sap/bc/soap/wsdl11?services=BAPI_PO_CHANGE&sap-client=100&sap-user=myId&sap-pa...

Former Member
0 Kudos

The URL address required in the WSDL file is :

http://xidev:50000/XISOAPAdapter/MessageServlet?channel=:SOAPCLNT:soap&version=3.0&Sender.Service=SO...

If I add the user and the password at the end of the URL with the '&' to devided, the sender program still requires user and password. It seems to make no sense of the added user information.

Former Member
0 Kudos

can you save your userid and password in WSLADMIN

Former Member
0 Kudos

hey, Sreeram,

Integration directory does not provide methord to add the userid and password information during the process of generating the WSDL file. Moreover I don't want to ask the enduser of input the userid information when they visit the web service.

Thinking...

and thank you.

alex