开发者

Returning xml from asmx webmethod call?

开发者 https://www.devze.com 2023-03-02 20:14 出处:网络
开发者_高级运维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

开发者_高级运维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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号