• Post Reply Bookmark Topic Watch Topic
  • New Topic

can we use RESTFul webservice ?  RSS feed

 
Kaleeswaran Karuppusamy
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Kaleeswaran Karuppusamy
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply

here i explain in details

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
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Kaleeswaran Karuppusamy
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i really confused .please read this link

http://www.coderanch.com/t/449274/Web-Services/java/do-Bulk-data-transfer-using

i concluded which is we cannot send bulk VO using webservice after i came across this link

please suggest me
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!