This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes SCDJWS-REST/SOAP Web services Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "SCDJWS-REST/SOAP Web services" Watch "SCDJWS-REST/SOAP Web services" New topic
Author

SCDJWS-REST/SOAP Web services

Suresh Kumar Rajendran
Greenhorn

Joined: Oct 31, 2007
Posts: 21
Hi all

I'm preparing for web services exam. I have some doubts, I cant find correct explanation through website.
If anyone explains me it will really help for my exam. Thanks in Advance.

1) Is REST web service can be used for build a state full web services?

2) What is the difference between document and procedural web services?

3) How we can identify statefull and stateless web service?

4) Can we implement Statefull web service in EJB?

5)Can we maintain a state in EJB through web service?

6) How we can identify document or RPC based web service by seeing SOAP XML?

Even if you reply for one or two question...it will be fine...
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
1. If you create a stateful REST web service, I would say it is no longer a RESTful web service.
Statelessness is one of the core principles in the REST architectural style.
Reference: http://en.wikipedia.org/wiki/Representational_State_Transfer#Constraints

3. A stateful web service can retain some state specific to a particular client while a stateless web service seems to "see the client for the first time" with every request.
Stateful web services need to use some kind of mechanism to identify a particular client. This can be a token of some sort or HTTP cookies, provided that HTTP transport is used.

4. If I remember correctly, only stateless session beans can be exposed as web services.
This may have changed in JavaEE 6.
However, it is still possible to implement a stateful service based on stateless session beans, but you will probably have to write more code and use a token parameter to identify a specific client.

Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SCDJWS-REST/SOAP Web services
 
Similar Threads
JEE 5 Vs JEE 6
Web Services Certification Material
Any feedback for SCDJWS Beta?
Web service interface help
SCJWSD Beta Exam