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 <[email protected]>
To: [email protected]
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: "[email protected]" <[email protected]>
To: [email protected]
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 <[email protected]>
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 <[email protected]> wrote:
> 
> > Hello,
> >
> > I have not gotten any response.  Trying again....
> >
> > Mustafa
> >
> >
> >
> > ----- Original Message ----
> > From: Mustafa Cayci <[email protected]>
> > To: [email protected]
> > Sent: Friday, September 25, 2009 3:57:38 PM
> > Subject: How to write XML-RPC web service?
> >
> > Hello,
> >
> > I am really new to XML-RPC.  Would you please let me the steps to 
> write a
> > XML-RPC based WS and execute through a client?  I apologize if 
> this is
> > posted before.  I could not find a way to search the xmlrpc-dev 
> email list.
> >
> > Mustafa
> >
> >
> >
> >
> 


      

Reply via email to