开发者

Best method for connecting to sustom XML web service in ASP.NET?

What is the best way to work with/consume custom XML web services in ASP.NET? The web service in question was developed quite a few years ago. It works by POST'ing the XML to a specific w开发者_StackOverflow中文版eb page and then responding with more XML. Run of the mill design, but it doesn't follow any SOAP standards. It follows a strict schema though.

What technologies are out there now that can make working with this easier? Or am I stuck doing custom HTTPRequests?


I've hear great things of RestSharp and I think it can easily cover your scenario.


Looks like your web service is a "XML over HTTP" Service. I think you may end up doing custom HTTP Posts as they are not at all standardized.


I would bite the bullet and convert it to a known standard such as SOAP, JSON...etc. You have so many tools in .NET to make the consumptions brainless if you use a standard. You will probably encounter less bugs going forward as well.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜