I an new in iPhone.Currently i am working on OData based web service. But i am little confusing with how to call webservice and getting response with OData.I have below information with me.
The metadata of this service is located at :
http://enumbler.azurewebsites.net/odata/$metadata
and Base url is :: http://enumbler.azurewebsites.net/odata/User
Can anyone help me to solve this?
Thanks in advance.
I'm not familiar with IOS, but I may help with common way to consume OData services. Take one OData sample service TripPin, if you want to get all airlines, you can simple calling http://services.odata.org/V4/TripPinService/Airlines. The response is in JSON payload, you can consume this either directly dealing with JSON or use some OData client libraries for IOS. One difference your service and the sample service has may be that TripPin is OData V4 and your service is OData V3. Maybe your service doesn't support JSON but ATOM payload, but you can deal with either way I mentioned above. For more detailed information of OData, you can go directly to OData.org. Hope I helped you with part of your problem.
Related
I have a Web API using OData that I need to query. The client application is a SPA built with React/Redux, but it looks as if most data service libraries such as isomorphic-fetch do not support OData. Can BreezeJS be useful for me in this situation? Or OLingo's ODataJs? Any examples, tutorials, resources on using these or any other OData clients with Redux? AFAIK, I just need a the client library to query an OData source and support promises. And as far as the data I get back from the server, I just need simple json objects; no need for models that support binding.
I've seen discussions of Breeze + Angular/Backbone, but can it support Redux/React?
I doubt that either Breeze or ODataJS supports ES6, so if i had to wrap them in a ES6 module, would they still function properly?
Maybe it helps if you consider that OData isn't that far off from REST. If it's just about pulling the data from a OData service, you won't need much more than jQuery.getJSON and Breeze will work too. However, if you want to do it the fancy way, and want you app to introspect the meta-model and such, you should have a look at datajs or olingo.
I am developing a sample app to illustrate use of OData in my application(NancyFx based).
Can any one help in get started with this.
First, I'm not familiar with NanchFx. As far as I know, it is a different framework to build Web application than Web API.
Second, what do you mean a "sample app" ? Is that a app to build an OData service or to consume a OData service? If it's for server side, maybe you need to get started with ODataLib. If it's for consuming, then maybe a little bit more options like OData client for .NET, OData client code generator, and other JavaScript library supporting OData like JayData, Olingo ODataJS, Breeze, etc. HTH
Can any one help me how to consume WCF services in an iPhone application?
I am searching it desperately. I have also installed the wsdl2objc from http://code.google.com/p/wsdl2objc/. but still I am not getting any clue that How can I use it to worth get the correct responce.
Please get me out of this trouble...I need the right solution!!
Thanks.
If you are about to use the SOAP services than my advice is don't.....because for SOAP services you may able to construct the base classes using http://code.google.com/p/wsdl2objc/ but the response you will get from the service will give the references and the whole data structures along with response and you can't parse the response.
You can use this wonderful framework called CSOAP
I am quite confused on what REST API to follow that will sync with RestKit.
I have a problem in making a put/post/delete request.
One of the REST API I follow is from NetTuts which I found very hard to sync with RestKit.
Any suggestions? Thank you so much!
RestKit is a generalized framework for consuming JSON/XML over HTTP. It will interoperate with any backend, providing the payload can be expressed as key-value coding key paths.
I've found code samples for calling a JSON service, but I'm not sure how to add multiple parameters. Could somebody help me out?
My JSON Service is a .NET WCF service SearchTalent(talentName, agentName, agencyName)
I think you will need to find out the URL's of the service, not the .Net representation of the service.
I'd suggest you use Restkit to interface with the service once you know the urls. You might want to look into that.