Wednesday, 15 May 2013

web services - How we can consume Odataservice without generating proxy -



web services - How we can consume Odataservice without generating proxy -

i planning odata service built entrprise info bus getting consumed business service. business service having services various clients web site, smart phones,etc

to start looking consume odata service in business service without generating proxy(without adding service reference).

i found 1 article explain how consume wcf service without using service reference here. looks great in scenario having separate project service contract , info contract. can have similar odata services also?

i might wrong, unlike wcf soap services, odata not 'require' proxy consume. http protocol , response come plain xml or json without message contract infrastructure of wcf. there atom pub syndication format have deal with, .net has libraries that.

generating proxy service reference odata services convenience clients work typed model, not requirement.

to verify this, nail odata service simple url request , view response in browser (turn off automatic rss readers) or in fiddler. if business layer can deserialize response, ready go without proxy.

if accessing javascript client, there js libraries can help deserialization well, such jaydata , datajs

web-services wcf odata

No comments:

Post a Comment