Returning xml from asmx webmethod call?
开发者_高级运维Is it possible to return plain old xml using an asmx file? Without the SOAP stuff?
I would recommend you look into a generic handler if your goal is to avoid SOAP. Start here to for some info on using generic handlers, also called ASHX handlers.
From a generic handler, you can return whatever data you like. Using an asmx file for such purposes would be confusing for future developers and it adds complexity that you likely don't need.
精彩评论