I have a Silverlight app that is using WCF to connect to some services. The services are running as a windows service and are on a different port, so I have to use a client access policy file. In the WCF services there is a method for getting the client access policy.
[WebGet( ResponseFormat = WebMessageFormat.Xml )] public Stream GetClientAccessPolicy(){...}
This works fine in IE and Safari, but does not work in FireFox. I can see that the client access policy is requested and returned and FireFox successfully receives it, but Silverlight doesn't actually get the data.
Is there a way to fix this?
I know it is possible to do
WebOperationContext.Current.OutgoingResponse.Content = "application/xml";
but I want to know if it's possible to fix the issue with WebGet.