0 Replies Latest reply on May 6, 2010 2:05 PM by sg6227

    Persistent Connections in Web Services

    sg6227

      Hi, i'm currently developing a Web Service Client that wold be constantly sending requrements to a Web Service server, but i see that the tcp connection is being closed after each requirement is fullfilled. I can't find the way to set the connection as persistent. I tryed forcing the HTTP headers with a code like this one:

       

      var service:WebService = new WebService("http://127.0.0.1:8080/SomeService.asmx?wsdl");

       

      var header:Object=new Object();
      header["Keep-Alive"]= "300";
      header["Connection"]= "keep-alive";
      service.httpHeaders= header;

      service.loadWSDL();

       

       

      But i get the Fault Event with error string:

       

      RPC Fault faultString="Error #2096: The HTTP request header Keep-Alive cannot be set via ActionScript."

      if i change the order the error is:

      RPC Fault faultString="Error #2096: The HTTP request header Connection cannot be set via ActionScript."

       

       

      Does any one knows how to deal with this?

      Thanks in advance!!!