I have a wcf service hosted in sharepoint that retunrs a list of objects. Its a not a wcf data service, just a 'regular' wcf data service.
Can data js read dta from a 'regular' wcf data service?
In short - no. datajs can only consume OData formatted payloads.
Related
How can I consume a WCF Data Service without adding a Service Reference.
For a normal WCF service, we use shared contracts and create proxy at runtime to call the service. Is similar concept possible in case of Data Service?
I am new to WCF and just have made a sample service. Please guide me by default WCF services are soap or restful if we not specify anywhere ? I tried to run URL of my services and got this page. I am feeling it is SOAP based. Kindly guide.
Thanks
WCF services by default are SOAP - unless you use the webHttpBinding which is REST (and this for now is the only RESTful binding). To test your SOAP based services, you cannot just navigate to an URL in your browser - you need to use a SOAP test app, like SoapUI or the WCF Test Client.
WCF Data Services and WCF RIA Services are based on webHttpBinding and thus are REST-based. REST services can be tested by just browsing to the URL - you'll get back XML that can be shown in your browser (or JSON which you can store to a file and look at)
By default, WCF services are soap based if you use the project item "WCF Service" in visual studio.
I already have a WCF service that communicates through SOAP messages now I have a requirement to modify this service such that it can be consumed from JavaScript. The client asked me to look into WCF Web Api. I don't understand what are advantages I'm going to get using WCF Web Api than WCF RESTful services. Is WCF RESTful services is enough for this job?
WCF Web API is evolution of current WCF REST services = it will be the next version of WCF REST but at this time it is still preview.
Does anyone have a simple data entry example which involves WCF (Odata ) and WP7?
Thanks
Here are two good places to start:
Introduction to WCF Data service and
ODATA
OData and WCF Data
Services
Once you have the service itself running, you would access it in the WP7 application the same way you access any other WCF service.
Note that there is a OData Client Library for Windows Phone 7. You might also want to read this article for some additional info.
I have an ADO.NET Data Service and a regular WCF service. I'm using both these services in a Silverlight application. The WCF sercvice has an operation which has a parameter of the same type as an entity returned by the ADO.NET Data Service. The problem is that silverlight generates different types for the WCF service and for the ADO.NET service so passing the result from one to the other would require extra code. I would like to reuse the types generated for the ADO.NET Data Service proxy for the WCF serice proxy as well.
Take a look at this tip from Alex James.