File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Use of SOAP in a Java Web Service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Use of SOAP in a Java Web Service" Watch "Use of SOAP in a Java Web Service" New topic
Author

Use of SOAP in a Java Web Service

Romario Dominic
Greenhorn

Joined: Feb 27, 2006
Posts: 26
Folks,
I have a pretty basic question.Is SOAP the default messaging protocol when one writes a Web Service in Java?Or is SOAP not really required when one writes a Java Seb Service?

Thanks
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Originally posted by Romario Dominic:
Is SOAP the default messaging protocol when one writes a Web Service in Java?

Default no, most common, probably.
SOAP is currently the most common wire protocol used with web services (Java or not) - especially those supported by development tools. A web service does not have to be based on SOAP, but currently most of them are, however that does not make it the default.
Furthermore if you use a SOAP stack (like Axis) that supports JAX-RPC/JAX-WS you may not have to deal with SOAP at all unless you need to write a SOAP handler to deal with SOAP header blocks. Nonetheless it does help to know SOAP when you are working with SOAP-based Web services.

I already outlined some of the non-SOAP Web service alternatives in your previous thread.
[ March 12, 2006: Message edited by: Peer Reynders ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Use of SOAP in a Java Web Service