This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Web Services and the fly likes Advice for noob: Restlet or SOAP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Advice for noob: Restlet or SOAP " Watch "Advice for noob: Restlet or SOAP " New topic
Author

Advice for noob: Restlet or SOAP

Chris Luc
Greenhorn

Joined: Jan 19, 2011
Posts: 5
Hello everyone.

I have to develop a web service that looks like this: I make a get call, including a string in the url, and I need to receive another string based on the initial string from the query.

I might have to make this call even for a thousands times a minute. Do you think that the server will be able to handle so much HTTP communication? Is a RPC approach better?

Any suggestion is welcomed, I am just starting to work on web services and I have no clue about the performance.

Thanks.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12327
    
    1
If your traffic is mostly GETs and you don't need SOAP's complex WS-* security thingees, RESTful services will be MUCH MUCH easier to implement.

Thousands of times per minute should not be a problem.

Where are your clients and how do they connect?

One under-appreciated advantage of sticking to HTTP and servlets is the ease with which you can monitor the service from anywhere with a browser.

Bill


Java Resources at www.wbrogden.com
Chris Luc
Greenhorn

Joined: Jan 19, 2011
Posts: 5
The clients can be all over the world and one server somewhere in Europe. This web service must respond 99% with another string and I figured that GET is the best approach. Of course, I will add SSL on top. Any suggestions on a way to do the encryption and decryption?
Thanks.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35443
    
    9
Why do you want to use encryption if you're using SSL?


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Advice for noob: Restlet or SOAP
 
Similar Threads
Byte[] to String and Back
Webserver and Application Server setting
Does JPA spec include methods for connection?
Trouble getting IFRame Call to work
issue while getting the value from JSON string