I’m trying to simulate an existing API and I would love to get some help.
How can I create a WCF service that will respond to:
http://www.something.com/dothis?param1=x¶m2=y
And will run the function dothis with the given parameters’ values. And then it needs to return an XML response.
I looked it up but I would love to get some directions, links or better search terms.
Thanks!
You might want to start here for nice REST WCF services.
The main thing you need to know is about the interface:
The WebInvoke attribute will get you what you want while using a nice url. So you would end up with something like http://www.something.com/dothis/x/y.