Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

can we use RESTFul webservice ?

 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43026
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43026
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i really confused .please read this link

https://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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Danger, 10,000 volts, very electic .... tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic