I'm wondering if I can use WCF so that the client can set the appropriate binding by just changing the URL. Some examples:
URL: http://yourhost.com/orders.json?op=getall
Description: get all orders as JSON.
URL: http://yourhost.com/orders.xml?op=getall
Description: get all orders as XML.
URL: http://yourhost.com/orders.soap?op=getall
Description: get all orders as SOAP that's WSI compliant.
URL: http://yourhost.com/orders.soap?wsdl=yes
Description: shows the WSDL of the SOAP service.
This strategy is somewhat similar to what Twitter had used in it's API.
Is this possible with WCF?