0 Replies Latest reply on Jul 12, 2013 10:08 AM by 800839

    WSDL security policy username & password authentication



      I am creating a WS policies in WSDL for username & password authentication , below is what I am using:-

      <wsdl:service name="echoService">
          <wsdl:port name="echoPort" binding="tns:echoBinding">
              <soap:address location="http://pponnala-tecra-xp.stc.com:18181/
              <wsp:PolicyReference URI="#HttpBasicAuthBindingBindingPolicy"/>

      <wsp:Policy wsu:Id="HttpBasicAuthBindingBindingPolicy">
          <mysp:MustSupportBasicAuthentication on="true">
          <mysp:UsernameToken mysp:IncludeToken="http://schemas.xmlsoap.org/ws/

      Here I need to pass the <Wsspassword> in the respective placeholder from the application. How we can pass
      the respective password to the <sp:WssPassword>${pass_token}</sp:WssPassword>? I have hardcoded with some
      valid password. But it is not working. What I am doing wrong here? Is there any way we can validate the authentication
      in a better way in WSDL? Also clarify now we can pass the password in the respective pass_token placeholder?
      Please clarify.