I would consider Calculator.java a web service, but I'm not familiar with "service bus". I suspect you mean http://en.wikipedia.org/wiki/Enterprise_Service_Bus and "endpoint" as defined on this page http://en.wikipedia.org/wiki/Service-oriented_architecture

I don't know that XML-RPC is appropriate to a service bus--it's pretty simple and low level. I think SOAP has more of the infrastructure to support what you are talking about.

-Ken

Mustafa Cayci wrote:
Hello again,

One more question ...

What is Calculator.java in this case?  Is it considered a web service in 
XML-RPC case?  If so, if I was to invoke this class by some other way, for 
example a service bus, what would be the endpoint URI?

Thanks,
Mustafa



----- Original Message ----
From: Mustafa Cayci <aca...@yahoo.com>
To: xmlrpc-dev@ws.apache.org
Sent: Monday, September 28, 2009 11:15:04 AM
Subject: Re: How to write XML-RPC web service? (Second Posting)

Thanks Ken.

I created the XmlRpcServlet.properties file.  I created the Calculator.java, 
Server.class and Client.java.  I compiled them.  I started the Server.class.  I 
then executed Client.class and got back

===

2 + 3 = 5
Process exited with exit code 0.

====

per the following code in the Client.java

        // make the a regular call
        Object[] params = new Object[] { new Integer(2), new Integer(3) };
        Integer result = (Integer)client.execute("Calculator.add", params);
        System.out.println("2 + 3 = " + result);


So is this it?  Did I successfully execute my client code in XML-RPC server?  
Did I miss anything?

Mustafa



----- Original Message ----
From: "ken.tan...@noaa.gov" <ken.tan...@noaa.gov>
To: xmlrpc-dev@ws.apache.org
Sent: Monday, September 28, 2009 9:49:54 AM
Subject: Re: How to write XML-RPC web service? (Second Posting)

I agree, the link Stanislav gave was the most helpful for me to get
started with XML-RPC.

Ken

----- Original Message -----
From: Stanislav Miklik <stanislav.mik...@gmail.com>
Date: Monday, September 28, 2009 7:33 am
Subject: Re: How to write XML-RPC web service? (Second Posting)

I think good entry point can be example here:
http://ws.apache.org/xmlrpc/server.html

<http://ws.apache.org/xmlrpc/server.html>Regards
Stano

On Mon, Sep 28, 2009 at 15:21, Mustafa Cayci <aca...@yahoo.com> wrote:


Reply via email to