I will be interfacing with a third-party – the exchange of information is done as follows.
If my application is the client and the third party is the server, then:
- Server-to-client: I give them a pre-defined URL and they push data with HTTP POST. The POST parameters contain a variable “xml” with the request in a proprietory XML format.
- Client-to-server: this is done in a similar way only this time I originate the request (irrelevant to the question I guess)
Is this possible with WCF? If so, how?
If not, ASP? MVC?
Whatever the case, please give some pointers as to the specific steps.
Thank you
Edit: The response given is a HTTP 200 along with a proprietory XML response. Typically, the flow of data will be:
Server pushes request to client service => Generate response (usually will involve the client requesting the server to do something) => Give HTTP 200 back with response XML
I’d really wonder why you are doing old-school web services (custom XML over custom HTTP endpoint) in 2010. That said, I think in this scenario you probably want either:
a) Ye olde plain IHttpHandler taking raw input and returning a response.
b) An ASP.NET MVC App doing the same thing on a dedicated controller.
Decision really would get driven by what else you need to deploy with this app but either would work. Kickers here are responses are synchronous and the domain is relatively focused.
I think you could get there with WCF, but that adds so much configuration complexity to what is really a simple operation that it is probably best avoided.