How do I compress the output data from a web service (web method). The output is XmlDocument type.
Here is the code.
[WebMethod]
public XmlDocument GetPersonalInfo(int CustomerID)
{
XmlDocument doc = new XmlDocument();
doc.LoadXml(new CustomersXML().GetPersonalInfo(CustomerID));
return doc;
}
How do I Gzip this response. Please remember that it is not a page (HTTP call) its a web service that is being called from a Flex client.
Thanks