2 Replies Latest reply on May 30, 2007 8:58 AM by brendan.mckenna

    Web Services with HTTP Basic Auth

    brendan.mckenna
      Hi,

      I am having a problem connecting to web services which require HTTP Basic Authentication from a Flex application. I have useProxy set to true and call setRemoteCredentials prior to attempting the call, but the credentials do not appear to be set on the request (the request fails with fault.faultString = "HTTP request error", faultCode = "Server.Error.Request". The messages on the server indicate that the user name and password were not specified.

      I do have the proxy-config.xml file set up properly (I think -- I followed the example in the mx.rpc.soap.mxml.WebService class description, at least).

      I can verify that the WSDL (which doesn't require BASIC auth to access) is being loaded properly, but when I make the request, it fails. Is this a known problem?

      I am using Flex Builder 2.0.1 to build my SWF files.

      Thanks,

      Brendan