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:
What fiddler tells us the web service is sending:
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?
Also I notice that the SOAPAction header is incorrect and the body is right. When adding http headers it saves the one from the first operation and never loads it again.
It seems that if you add custom http headers then these get saved in the Operation class (sdks\3.5.0\frameworks\projects\rpc\src\mx\rpc\soap\Operation.as). Unfortunately it also saves the SOAPAction header and then never loads it from the wsdl for other operations.