Re: How to write XML-RPC web service? (Second Posting)

View: New views
7 Messages — Rating Filter:   Alert me  

Re: How to write XML-RPC web service? (Second Posting)

by mcayci :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I have not gotten any response.  Trying again....

Mustafa



----- Original Message ----
From: Mustafa Cayci <acayci@...>
To: xmlrpc-dev@...
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


     

Re: How to write XML-RPC web service? (Second Posting)

by Stanislav Miklik :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <acayci@...> wrote:

> Hello,
>
> I have not gotten any response.  Trying again....
>
> Mustafa
>
>
>
> ----- Original Message ----
> From: Mustafa Cayci <acayci@...>
> To: xmlrpc-dev@...
> 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
>
>
>
>

Parent Message unknown Re: How to write XML-RPC web service? (Second Posting)

by Ken Tanaka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Mustafa,

I was wondering the same thing earlier this year. I'm also fairly new to
XML-RPC, but I got an example working with Maven and Java 1.5 running
through apache-tomcat-6.0.16. Since there weren't many complete examples
with a current xmlrpc library (version 3.1.2) I posted what I did in the
wiki at

http://wiki.apache.org/ws/XmlRpcExampleStringArray

Hope that helps you get started.

-Ken

----- Original Message -----
From: Mustafa Cayci <acayci@...>
Date: Monday, September 28, 2009 7:21 am
Subject: Re: How to write XML-RPC web service? (Second Posting)

> Hello,
>
> I have not gotten any response.  Trying again....
>
> Mustafa
>
>
>
> ----- Original Message ----
> From: Mustafa Cayci <acayci@...>
> To: xmlrpc-dev@...
> 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
>
>
>      
>

Parent Message unknown Re: How to write XML-RPC web service? (Second Posting)

by Ken Tanaka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.miklik@...>
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 <acayci@...> wrote:
>
> > Hello,
> >
> > I have not gotten any response.  Trying again....
> >
> > Mustafa
> >
> >
> >
> > ----- Original Message ----
> > From: Mustafa Cayci <acayci@...>
> > To: xmlrpc-dev@...
> > 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
> >
> >
> >
> >
>

Re: How to write XML-RPC web service? (Second Posting)

by mcayci :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.Tanaka@..." <Ken.Tanaka@...>
To: xmlrpc-dev@...
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.miklik@...>
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 <acayci@...> wrote:
>
> > Hello,
> >
> > I have not gotten any response.  Trying again....
> >
> > Mustafa
> >
> >
> >
> > ----- Original Message ----
> > From: Mustafa Cayci <acayci@...>
> > To: xmlrpc-dev@...
> > 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
> >
> >
> >
> >
>



     

Re: How to write XML-RPC web service? (Second Posting)

by mcayci :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <acayci@...>
To: xmlrpc-dev@...
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.Tanaka@..." <Ken.Tanaka@...>
To: xmlrpc-dev@...
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.miklik@...>
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 <acayci@...> wrote:
>
> > Hello,
> >
> > I have not gotten any response.  Trying again....
> >
> > Mustafa
> >
> >
> >
> > ----- Original Message ----
> > From: Mustafa Cayci <acayci@...>
> > To: xmlrpc-dev@...
> > 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
> >
> >
> >
> >
>


     

Re: How to write XML-RPC web service? (Second Posting)

by Ken Tanaka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <acayci@...>
> To: xmlrpc-dev@...
> 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.Tanaka@..." <Ken.Tanaka@...>
> To: xmlrpc-dev@...
> 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.miklik@...>
> 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 <acayci@...> wrote:
>>
>>
>>