Workflow Soluiton

 View Only
  • 1.  Passing in the Username/Password when connecting to a web service using a WSDL file

    Posted Aug 22, 2012 01:32 PM

    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.

    Thanks,

    Aryanos



  • 2.  RE: Passing in the Username/Password when connecting to a web service using a WSDL file

    Posted Aug 23, 2012 10:23 AM

    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.



  • 3.  RE: Passing in the Username/Password when connecting to a web service using a WSDL file

    Posted Aug 23, 2012 10:28 AM

    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?



  • 4.  RE: Passing in the Username/Password when connecting to a web service using a WSDL file
    Best Answer

    Posted Aug 23, 2012 11:22 AM

     

    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?