You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Duseja, Sushil" <Su...@fiserv.co.in> on 2008/06/30 15:15:54 UTC

Web service returning list or array

Hello,

 

Please let me know how to write a client (using axis 1.4) that consumes
a web service returning a list or an array of custom objects (say -
Employee).

 

Thanks.

 


Re: Calling a web service returning list/array

Posted by Dimuthu Leelarathne <mu...@apache.org>.
Hi,

So you can find on generating clients here

http://ws.apache.org/axis2/1_4/userguide-creatingclients.html#createclients


You can give a url as the wsdl instead of a file in the file system.

You can use ADB. What is the style of the service? Is it doc/literal?
RPC/literal? It it is you'll be fine. Axis2 does not support SOAP
Encoding.

Thank you,
Dimuthu

On Tue, 2008-07-01 at 11:49 +0200, Alessio Brescia wrote:
> I'm using Axis2.
> 
> --------------------------------------------------
> From: "Dimuthu Leelarathne" <mu...@apache.org>
> Sent: Tuesday, July 01, 2008 11:44 AM
> To: <ax...@ws.apache.org>
> Subject: Re: Calling a web service returning list/array
> 
> > Hi,
> > 
> > What are you using Axis or Axis2?
> > 
> > You can type ?wsdl at the browser to look at the wsdl of the service.
> > 
> > Then you can run wsdl2java to create client side stubs. Then call the
> > service using these stubs. The user-guide tells you how to run
> > wsdl2java.
> > 
> > Thank you,
> > Dimuthu
> > 
> > On Tue, 2008-07-01 at 14:18 +0530, Duseja, Sushil wrote:
> >> Hello,
> >> 
> >>  
> >> 
> >> Can anyone please let me know the procedure of calling web service -
> >> returning an array/list of objects, without a client stub, using axis
> >> 1.4?
> >> 
> >>  
> >> 
> >> Thanks.
> >> 
> >>  
> >> 
> >> 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Calling a web service returning list/array

Posted by Alessio Brescia <al...@projectweb.it>.
I'm using Axis2.

--------------------------------------------------
From: "Dimuthu Leelarathne" <mu...@apache.org>
Sent: Tuesday, July 01, 2008 11:44 AM
To: <ax...@ws.apache.org>
Subject: Re: Calling a web service returning list/array

> Hi,
> 
> What are you using Axis or Axis2?
> 
> You can type ?wsdl at the browser to look at the wsdl of the service.
> 
> Then you can run wsdl2java to create client side stubs. Then call the
> service using these stubs. The user-guide tells you how to run
> wsdl2java.
> 
> Thank you,
> Dimuthu
> 
> On Tue, 2008-07-01 at 14:18 +0530, Duseja, Sushil wrote:
>> Hello,
>> 
>>  
>> 
>> Can anyone please let me know the procedure of calling web service -
>> returning an array/list of objects, without a client stub, using axis
>> 1.4?
>> 
>>  
>> 
>> Thanks.
>> 
>>  
>> 
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org 

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Calling a web service returning list/array

Posted by Dimuthu Leelarathne <mu...@apache.org>.
Hi,

What are you using Axis or Axis2?

You can type ?wsdl at the browser to look at the wsdl of the service.

Then you can run wsdl2java to create client side stubs. Then call the
service using these stubs. The user-guide tells you how to run
wsdl2java.

Thank you,
Dimuthu

On Tue, 2008-07-01 at 14:18 +0530, Duseja, Sushil wrote:
> Hello,
> 
>  
> 
> Can anyone please let me know the procedure of calling web service -
> returning an array/list of objects, without a client stub, using axis
> 1.4?
> 
>  
> 
> Thanks.
> 
>  
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Calling a web service returning list/array

Posted by Alessio Brescia <al...@projectweb.it>.
You can call the service by its URL (like you do with a browser), return the string containing the XML form of the result, then extract the information using dom4j classes.
Search "Processing XML with Java" on Google. In the first chapters of this book there's a class called URLGrabber that retrieves information from a service called by its URL.




From: Duseja, Sushil 
Sent: Tuesday, July 01, 2008 10:48 AM
To: axis-user@ws.apache.org 
Subject: Calling a web service returning list/array


Hello,

 

Can anyone please let me know the procedure of calling web service - returning an array/list of objects, without a client stub, using axis 1.4?

 

Thanks.

Calling a web service returning list/array

Posted by "Duseja, Sushil" <Su...@fiserv.co.in>.
Hello,

 

Can anyone please let me know the procedure of calling web service -
returning an array/list of objects, without a client stub, using axis
1.4?

 

Thanks.