i would like to know shall i use RESTful webservice to my project. or any issues are there. i started my project with webservice.but i need to send bulk of date to Flex client and also swing application client so planning to use RESTFul webservie .please suggest me How RESTful help me
Judge a man by his questions rather than his answers --Voltaire
SCJP 1.5 97%
I see nothing in your question that would let someone make an informed decision on whether to use a SOAP or a REST-based WS (that's what you're asking, right?) Both Flex and Swing can access either kind of service.
A differentiating question might be "What are your security needs?" (SOAP support WS-Security, REST doesn't.) or "Do you need attachments?" (which REST doesn't support).
i started my project with webservice its good enough for sending single VO class to client.but the problem is when client searching something that time i need to send 500 VO as a array.so in this case i cannot send All VO in a single SOAP body. so in this case either we have to send as SOAP attachment or RESTful. Flex client does not support SOAP attachment. so i have plan to use RESTful webservice.
I created sample RESTful and i can access in flex client and now only i know JAX-RS also we can access in swing client using jersey api.
for security i planned to use Https connection.
using HTTPS connection can we access JAX-RS? if we can means we can use JAAS with any one of authentication method.Can we implement like this?
i dont know much about webservice security.i know only webserrvice security is actually Application level security thats really not needed in my application.Transport level security more than enough to my project.
my question is can we use RESTFul in my application without scare anything because i am only person to choose technology.so i need to Either RESTful mature implementation or not?
at the same time we are not exposing any method to public client so webservice is not must.we need to use http port using http our client flex and swing able to communicate with server.
please suggest me
Joined: Mar 22, 2005
i need to send 500 VO as a array.so in this case i cannot send All VO in a single SOAP body.
Why not? What does data size have to do with deciding on SOAP-vs-REST?
REST as a concept is mature, and many people are using REST implementations like the Jersey library in production. So I wouldn't worry about maturity.
The point is that data sent in a SOAP body has to be:
1. encoded into XML - time consuming
2. transmitted - XML much bulkier than original data
3. parsed from XML to some data structure - time consuming
So far we are missing the client side - what is requsting this data?
If you want to move Java objects from server to Java on the client, it would be fast to serialize the whole collection of objects as a response to a REST style GET. You will find that a lot faster than anything involving XML - one reason being that there will be no concerns about UNICODE character reading.
If you have not studied Java serialization of Objects, its time to learn.