2 Replies Latest reply on Jan 31, 2011 2:52 AM by praetor1985

    Adding an http header breaks the webservice

    praetor1985

      I have a flex application that uses an asp.net webservice. It has been added to the application in the standard fashion and all of the classes have been generated etc. We want to send headers to tell the web service which language to use but adding headers is proving difficult.

       

      Whenever we add headers the webservice just keeps sending the same request (the first one made) whenever any webservice request is called, eg:

       

      What the code says:

       

      GetListOfSomething1()

      GetListOfSomething2()

      GetListOfSomething3()

       

      What fiddler tells us the web service is sending:

       

      GetListOfSomething1()

      GetListOfSomething1()

      GetListOfSomething1()

       

      This naturally causes lots of errors. If I uncomment the code that adds the headers (in the provided web service constructor where we also add a soapheader which works fine) the webservice magically starts working again.

       

      Anyone know the solution to this one?