0 Replies Latest reply on May 6, 2010 11:48 AM by GSCHUELER

    Basic Authentication in WebService

    GSCHUELER

      Hi,

       

         I am trying to authenticate in web service with basic authentication but I can not.

       

         The code:

       

         var w:WebService = new WebService();

       

         var encoder:Base64Encoder = new Base64Encoder();

         encoder.insertNewLines = false;

         encoder.encode("teste:teste");

             

         w.httpHeaders = {Authorization:"Basic " + encoder.toString()};

           

         w.loadWSDL("http://192.168.0.205:8080/jasperserver-pro/services/repository?wsdl");

       

         When I run the browser always asks for username and password and in a sniffer, for example firebug, I do not see the authentication header in HTTP package.

       

         Can anyone help me?

       

      Thank you.