Reputation: 117008
I am looking for any insight/direction on designing a simple web service. I would love to hear some thoughts on how to quickly get started, and what pitfalls to avoid. To simplify, here are the basics I'm looking to accomplish:
Assuming use of open source tools, how should I begin on the server side? Given a MySQL database and HTTP web server (Apache), then there needs to some simple logic to connect to the database.
Upvotes: 2
Views: 1285
Reputation: 117008
Information I have come across:
Application Servers
I think a standard Application Server is probably not necessary for this task. Wikipedia has a comparison of application servers.
Web Application Frameworks
A web application framework can be utilized to provide database access and other features need by a web service. Wikipedia has a comparison of well-known frameworks for various languages.
There is also a specific list of web service frameworks. These implement some of the WS protocols, but also I think is too heavy-weight for a simple web service.
Upvotes: 0
Reputation: 4128
Have a look at Hessian from Caucho. It's a really wonderful light weight protocol. After I discovered it for myself, I almost cried about those torturous days I wasted on SOAP, WSDL and the like. A service can be a really trivial POJO (if you're in java) wired by Spring and exposed through web server. Making services never been easier ever since.
Upvotes: 2
Reputation: 6278
Personally I would use a self hosted WCF service probably. Depends on what you are going to use it for. Maybe an asp.net hosted WCF service.
Upvotes: 0
Reputation: 12323
What languages/tools are you and your team most familiar with? You can create a web service using any number of languages, but if you are already proficient in one or the other, why not choose that?
Some languages are better than others at certain tasks, so it depends on your goals. If you are looking for a task to learn a new language, pick one. If you need to get something deployed within a short timeframe, something you already know should be faster, even if it isn't the "best" language for the task. There are typically no "best" tools for any application, just how you use them and make something worth using.
Upvotes: 0