Video Screencast Help

Passing in the Username/Password when connecting to a web service using a WSDL file

Created: 22 Aug 2012 • Updated: 03 Oct 2012 | 3 comments
This issue has been solved. See solution.

Does anyone know if it's possible to pass in the username and password to connect to a web service if you're connecting it using a WSDL file? I thought the Security button on the Namespaces and Categories page would do it but I still get an unauthorized error.



Comments 3 CommentsJump to latest comment

reecardo's picture

I think you are supposed to use the Security button on the Namespaces/Categories page in this case. The username/PW filed page on the 1st page is only used to contact the WS to obtain a WSDL I believe (a step you bypass because you're providing the WSDL).

If you look at the source of the generated component, the username /PW you provide should be showing up in the code near the top if done correctly.

Aryanos's picture

I've never done it with before with a WSDL file and it's a SAP web service. I resolved it by creating the integration to the WSDL and then using Create Basic Authentication Token to pass it the username/password.

The security settings is that used for other clients to connect to the web service I'm creating or is that still done in IIS? For example if I create a web service and set the security settings would the client trying to connect to it use the username and password that set for it?

I like my beats fast and my bass down low

yliquor's picture

I think it depends on how your WSDL is structured.  I have seen security handled in different ways in webservices.   Can you post your WSDL?