0 Replies Latest reply on Feb 4, 2008 2:26 PM by pchris1977

    Consuming WebServices

    pchris1977

      Hi,

      I want to consume data from a webservices that accept gzip as a valid gzip encoding.
      I define the webservice in ActionScript ws=new(webService) and in the load event, I define the operations of this webservice.
      I tried to added the code below:
      ...
      var headerEncoding : URLRequestHeader = new URLRequestHeader( "Accept-Encoding", "gzip" );
      var headerContent : URLRequestHeader = new URLRequestHeader("Content-Type", "multipart/x-gzip");
      oOperation.httpHeaders = [ headerEncoding , headerContent ];
      ...
      oOperation.resultformat="e4x";
      oOperation.send();

      In the event result i see only XML data no gzip.


      Thanks in advance,
      Cristy