cancel
Showing results for 
Search instead for 
Did you mean: 

How to include username and passowrd in the wsdl file?

Former Member
0 Kudos

Hi...

I have done soap to file sceanrio. In that i have generated wsdl file and consumed it through the infopath. While executing through the microsoft infopath, it is asking for the userid and password. Can i include the id and password in the wsdl file itself which i will generate in ID? If yes/, please tell me the procedure to do it.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks Amir, You have answered my query.

kkram
Contributor
0 Kudos

As Amir suggested, you may provide in the URL but I wouldn't suggest it though. You don't want to hard code the user ID and password within in the WSDL because it is a bad practice especially the user ID and password may be different in different systems and every time you change the password, you have to regenarate your WSDL.

May be you thought through this but just in case if you didn't

KK

Former Member
0 Kudos

Hey

Just add the following at the end of the URL when you are creating the WSDL file in ID.

&sap-user=<username>&sap-password=<password>

Thanx

Aamir