I have reado couple of tutorial about memcached. Basically its a key value data store. I am not clear is it like web service running on some webserver like tomcat or node.js?
As #thomas said, it's not java so no, it's not running tomcat.
Also, it is a key/value data store, and it is not running a webserver at all, nor using it internally. It's probably save to say that a"webserver" is out of the question. It might be using some sort of framework internally, that I don't know personally, but that's the point where I kinda have lost the goal of your question :)
Related
In my iphone application I am calling (by SOAP post method) a web service which is written in .net and hosted on a server, and its all working fine. But my doubt is, can we write a web service in objective c? And host it on a server? so that we should be able to access it from any of the platforms like .net, php and objectiveC.
I read a fantastic tutorial regarding this question some time ago here.
To be honest, it can be quite difficult to really use this in a productive environment. If you want to get all the features and tools Apple gives to you (what seems to be the intention of your question), you'll have to use a Mac in order to run your service afterwards.
In my opionion using PHP for example (if you need a db also backed up by MySQL) is much easier. Almost all hosters support it and you won't have to worry about setting up a bunch of macs and connecting them via solid and stable cables to the internet (and with that: guarantee availability).
Yes. A web service is just some application that can provide a service over the web. As you can create an application in Objective C, it can be a web service the same as made in any other language.
You can make it run on any server where you have an objective C compiler, however, the framework you use may restrict your choices to the server (ie, you can write objective C on windows, but you wouldn't be able to use the NS framework)
Web services are not limited to a programming language, however you do need to find if there is any framework using objective-c can run on specific server. For example, iiS allows you to use Asp.net which could be implemented using C# or VB.Net.
From the clients who will consume web services, they don't have to be a specific type of device. I think that's the point of web services. The messages travel in between is formatted. For example, a SOAP message is using xml, and that would ensure the message travel on HTTP. Therefore no matter you use iPhone or Android or Blackberry, you should have no problem to make web service calls.
So in general, I think you have to see what kind of web services you want to create, and then see if Apple(I assume) can provide you with a good framework to do it. In terms of client side, as long as your web services are using XML or JSON, it should be well supported.
Hope it helps.
I'm looking write a webservice. A simple example of how a user will interact with this service is user-signup. A user can hit the service to create an account (if they're mobile). On the other hand, users can login (from a mobile app) to the application using the service. Now this service is for an existing rails application. My plan is to build a sinatra app within this rails app, and mount as a rails engine: this app will interact with my existing rails models to produce/consume the appropriate json. Would this be a good approach? Have anyone tried this before? Thank you.
I have used this approach: Rails w/ Sinatra routes. If you are providing a RESTful api I would also suggest looking at the Sintra-like, api-specific framework Grape. This link shows how to mount Grape inside of a Rails app. Best of luck.
"Premature optimization is the root of all evil."
Only go the Sinatra route if you need speed. For example, your rails app might do a lot of unnecessary computation in the application controller which you want to bypass in a mobile app. Even so, I'd be really sure it eats into response time on the mobile client before I started down the Sinatra path. Shaving off 10 milliseconds in the response time probably isn't worth all the developer time unless you're developing a game or something else which is highly interactive.
Since you've got an existing Rails app, just use Rails. It already has most of the code you need. You just need to write some JSON views. That's a lot simpler and easier to maintain than a parallel Rails/Sinatra stack.
I think you should just get rid of Rails and just forget about it. Just use Sinatra for your app, and just pure Rack whenever you can for your middleware.
Contrary to popular belief, you can easily build large-scale applications with Sinatra, the internals can be organized in any way you want.
Rails is slow. Why not just run something fast for everything? There is absolutely nothing you can't do with Sinatra and pure Rack, it's incredibly flexible.
I'm trying to make my Monotouch app work with WCF service. Everything works fine but every now and then (10 - 30 service calls), app crashes with SIGIL. Debugger says just that.
It happens on random places.
Another employee works on iPhone app which uses same service. Same problem, but more frequent.
Everything works great when testing on simulator.
If somebody's had same problem, please help. Would using asmx service help?
Thank you all.
Cheers
WCF is a bloated option on high traffic servers at the best of days, using SOAP in a mobile application is a enough of a waste of resources that it should be considered bad practice.
ServiceStack is a much leaner and faster option that also allows you to access your same web services with ServiceStack's strong-typed, code-gen-free Service Client's using .NET's fastest JSON and JSV Text serializers.
The MonoTouch versions of ServiceStack's service clients is available separately from:
https://github.com/ServiceStack/ServiceStack/tree/master/release/latest/MonoTouch
And an example MonoTouch application that showing how to use is available here:
https://github.com/ServiceStack/ServiceStack.Examples/tree/master/src/MonoTouch/RestFilesClient
Not much an answer, but I had a similar issue. Worked for a long time to get my desktop WCF client code running on MonoTouch, only to have the app die after 10 or so calls on SIGIL.
Symbolicating and analysing the crash reports showed the app dying somewhere in the WCF stack every time. However I could not distill the issue down into a trivial, reproducable example.
In the end I used the ServiceStack framework (http://www.servicestack.net/) to throw a simple XML REST endpoint in front of my service, and called it using simple WebClient requests and some helper methods to push my objects to/from XML (DataContractSerializer was too slow).
If you have access to the server side, this may be your simplest approach.
im have created a webservice with .net and it is running perfectly fine,now i have to develop an application on another platform which is java(eclipse,genymade)which call the web service that i have created in .net im not sure how to get started,can someone help me on this,or probably can share some article with me.thank you.
if you want an article this is probably what you want? Consuming web service in java.
Anyway it also depends on what kind of data format you are gonna parse. it may be either JSON or XML..
I am looking for an open source framework to build a proprietary protocol onto (Agent/Client talks to a Receiver/Server that stuffs things into a SQL database).
I need session handling (ie login/logout) and some kind of encryption.
I found the Spread Framework which looks great, but does not appear to support authentication or encryption of any kind out of the box.
My preferred language is C, C++, Python, or Perl.
Anyone know of anything off hand? Hoping for something to be out there to save me time rather than doing it the hard way all in *nix sockets ;)
Thanks in advance!
Why not use libcurl, as it can do SSL.
http://curl.haxx.se/libcurl/c/example.html
DJango and DJango ORM, or SQLAlchemy combinations can be a good start. A python base framework and ORM.
Since you are working at the socket level, I assume that you are trying to write an application from the ground up. Or are you trying to run within an existing web server?
Could you use lighttpd with HTTPS & mod_cgi? This isn't really a framework, per se, but it would keep your application portable to other infrastructures.
On the server side, CGI::Session could take care of the session management. Authentication could be done using mod_auth.
Why not use SSL/TLS? On the client you can use libcurl, which works with C, C++, Python, and Perl. On the server, use Apache, lightttp etc, with cgi or your favorite language. You can use mutual authentication to ensure verify the identify of both the client and server, as well as provided an encrypted channel.