简体   繁体   中英

FireFox doesn't display XML content whent I test my .asmx web service

When I test operations in my web service (the "invoke" button), the XML result is not shown, but it is like a string. When I call it from Google Chrome, it gives me XML result...

Firefox was showing XML and it just stopped, but only when I test operations. The Service Description (the link on the main .asmx page) is showing a XML file of all operations on the web service and the result is in XML...

What seems to be the problem ?

Thanks.

For me it was Avira Browser Safety addon.

Once removed from installed Firefox addons, XML display worked like a charm.

Anyway, try starting Firefox in safe mode and check if XML result is ok.

If so, try disabling each addon in turn, until you find the wrong one.

My guess would be that the HTTP header of the service description have a Content-Type : application/xml but not the call to your web service.

One way to check that would be to use fiddler and try to add a Content-type field to the header of your call. (You can use a breakpoint to make it easier) Then you can see the real result.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM