Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

WSS Authentication

Help
2009-05-01
2013-06-06
  • Hello,

    I'm new with NuSOAP. I am conected to a WS but keep getting the HTTP/1.1 500 Internal Server Error with the error description: An error occurred when verifying security for the message.

    I have set the user & password with the setCredentials() function, but there seems to be something else missing.

    Using soapUI to validate the message I do get the proper answer to the message and what I see I could be lacking in NuSOAP is a field in soapUI that says "WSS-Password Type" and it's content is PasswordText or http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0.

    How can I define that parameter in NuSOAP?

    Thanks!!!

     
    • Fred
      Fred
      2009-05-04

      Setting the Credentials is easy as just doing

      $client->setCredentials($user,$pass,$method);

      where these arguments are all strings. However I cannot confirm how nusoap deals with WSS the way you need.

      The only thing that occurs to me right now is that you try instead

      $client->setCredentials($user,base64_encode(sha1($pass)),$method);

      You can find the actual documentation to help you with the functions, here:

      http://nusoap.cvs.sourceforge.net/viewvc/nusoap/docs/

      Hope its helpfull :s

       

  • Anonymous
    2011-05-06

    I have the same problem.
    you could solve?