File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes some confused question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "some confused question" Watch "some confused question" New topic

some confused question

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
I am confused about several questions

1. what relationship between SOAP, XML-RPC and RPC?
2. Now web service could use either SOAP or XML-RPC. is it right?
3. how many solutions to solve the web sevice security?

Masoud Kalali
Ranch Hand

Joined: Jul 08, 2004
Posts: 531

in very simple language :
1-SOAP : is an standard which define , how should messages that come from entity to another entity looks like. it define the structure of xml file that contain web service request and response.
so when you execute a web service you send the service container a message in soap format and the result of execution will come back in SOAP format.

XML-RPC and RPC are two method of calling a remote method :-) , it means that you can use XML-RPC or RPC to call a method in a remote computer.
XML-RPC will use XML as Transfering mechanism.

2-web service can use SOAP+XML-RPC together . they use XML-RPC as a calling mechanism and SOAP as a transportation format for messages.

3- it is very wide topic , take a look at :

Masoud Kalali
Software Engineer - My Weblog - GlassFish Security
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Be aware that "XML-RPC" has two different meanings. One is the act of performing RPC by exchanging XML messages (and the XML could be SOAP). The other is the XML-RPC protocol, which I think was a brainchild of Dave Winer. It's a simpler and less powerful alternative to SOAP, but no longer widely used, now that SOAP is supported everywhere.

The standard for WS security is called, well, "WS-Security", and implemented in Java by the WSS4J library. There was a recent article in the JavaRanch Journal that may give you some starting points.
I agree. Here's the link:
subject: some confused question
It's not a secret anymore!