Reputation: 32291
I need to receive XML data from HttpPost requests. Currently I use HttpWebRequest to send the request and I convert the request to xml with StreamReader and XDocument.Parse.
Are there any benefits to switching over to WCF? Thanks!
Upvotes: 0
Views: 148
Reputation: 12259
If you don't plan to dramatically extend your application and only want to switch to WCF so that you are using it, no. :-)
WCF will give you some more flexibility - you could for example consume data in other data formats or from other transport formats (Named Pipes, ...)
Upvotes: 1
Reputation: 6654
I hope i understood your question correctly !!!
The use of WCF lies where you know that both the sending as well as receiving end share the same data contract. I think in your case, using WCF will benefit if both are MS application and the contract is not supposed to change very frequently.
Upvotes: 0