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 "Mathias P.W Nilsson" <ma...@snyltarna.se> on 2007/08/30 14:17:50 UTC

Axis2 and client

Hi!

I'm looking for a tutorial on axis2. I've managed to embed axis2 in my
webapplication but there isn't any toturials on how to build the client and
call the webservice.

Can anyone help me out here. How can I with the minimal amount of code get a
webservice up and running and call that service from a client?

Also, do I need the have the same classes on the client and the servet. Say
that the WebService returns a Book class. Then I assume that I need the Book
class on the client side as well.

Isn't this exacly what we already do with Object Input and Output streams?
-- 
View this message in context: http://www.nabble.com/Axis2-and-client-tf4353911.html#a12406040
Sent from the Axis - User mailing list archive at Nabble.com.


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


[Axis2-1.1.1] Callback enabled client for async services

Posted by "Jones, Alan R" <al...@boeing.com>.
Hi,
 
I want to enable my client to use callback functionality by creating a
SOAP message handler that will "intercept" the outgoing request, create
the appropriate headers (containing the callbackLocation and
conversationID elements) and send it on it's way - I also plan on having
a message handler on the receiving end to extract this header data....is
this possible in such a way that Axis2 will work with it correctly? 

Thanks, 

Alan J 


-------------------------------------------- 
Alan R Jones 
Boeing S&IS Mission Systems 
Denver Engineering Center (BDEC) 

 

________________________________

From: keith chapman [mailto:keithgchapman@gmail.com] 
Sent: Thursday, August 30, 2007 8:50 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2 and client


Just peep in to http://wso2.org It has several articles and tutorials on
Axis2. Here are a few to start with. You can search for what you want
over there. 

http://wso2.org/library/95
http://wso2.org/library/290
http://wso2.org/library/389

Thanks,
Keith.


On 8/30/07, Mathias P.W Nilsson <ma...@snyltarna.se> wrote: 


	Hi!
	
	I'm looking for a tutorial on axis2. I've managed to embed axis2
in my
	webapplication but there isn't any toturials on how to build the
client and
	call the webservice.
	
	Can anyone help me out here. How can I with the minimal amount
of code get a 
	webservice up and running and call that service from a client?
	
	Also, do I need the have the same classes on the client and the
servet. Say
	that the WebService returns a Book class. Then I assume that I
need the Book 
	class on the client side as well.
	
	Isn't this exacly what we already do with Object Input and
Output streams?
	--
	View this message in context:
http://www.nabble.com/Axis2-and-client-tf4353911.html#a12406040
	Sent from the Axis - User mailing list archive at Nabble.com.
	
	
	
--------------------------------------------------------------------- 
	To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
	For additional commands, e-mail: axis-user-help@ws.apache.org 
	
	




-- 
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/ 

Re: Axis2 and client

Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
Mathias P.W Nilsson wrote:
> Thank you Keith!
> 
> I managed to return some data from my service. How can I handle objects for
> this. When my service return my Book object I get this OMElement
> 
> <ns:findBookResponse
> xmlns:ns="http://ws.apache.org/axis2/samples/book/xsd/">
>   <return>
>     <author>Dan Diephouse</author>
>     <title>Using Axis2</title>
>     <isbn>0123456789</isbn>
>   </return>
> </ns:findBookResponse>

Damn that's gotta be a great book ;-).

> This is my book. How can I convert to Object?

Do you have a schema/wsdl written for the service? If so you can use 
wsdl2java to generate the code. If not you can either hand populate the 
object from Axiom or use something like JibX data binding to bring it into 
the Java object.

There are additional articles on this topic available on the Web ..

Sanjiva.
-- 
Sanjiva Weerawarana, Ph.D.
Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
Member; Apache Software Foundation; http://www.apache.org/
Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/

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


Re: Axis2 and client

Posted by "Mathias P.W Nilsson" <ma...@snyltarna.se>.
Thank you Keith!

I managed to return some data from my service. How can I handle objects for
this. When my service return my Book object I get this OMElement

<ns:findBookResponse
xmlns:ns="http://ws.apache.org/axis2/samples/book/xsd/">
  <return>
    <author>Dan Diephouse</author>
    <title>Using Axis2</title>
    <isbn>0123456789</isbn>
  </return>
</ns:findBookResponse>

This is my book. How can I convert to Object?

-- 
View this message in context: http://www.nabble.com/Axis2-and-client-tf4353911.html#a12414831
Sent from the Axis - User mailing list archive at Nabble.com.


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


Re: Axis2 and client

Posted by keith chapman <ke...@gmail.com>.
Just peep in to http://wso2.org It has several articles and tutorials on
Axis2. Here are a few to start with. You can search for what you want over
there.

http://wso2.org/library/95
http://wso2.org/library/290
http://wso2.org/library/389

Thanks,
Keith.

On 8/30/07, Mathias P.W Nilsson <ma...@snyltarna.se> wrote:
>
>
> Hi!
>
> I'm looking for a tutorial on axis2. I've managed to embed axis2 in my
> webapplication but there isn't any toturials on how to build the client
> and
> call the webservice.
>
> Can anyone help me out here. How can I with the minimal amount of code get
> a
> webservice up and running and call that service from a client?
>
> Also, do I need the have the same classes on the client and the servet.
> Say
> that the WebService returns a Book class. Then I assume that I need the
> Book
> class on the client side as well.
>
> Isn't this exacly what we already do with Object Input and Output streams?
> --
> View this message in context:
> http://www.nabble.com/Axis2-and-client-tf4353911.html#a12406040
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/

Re: Axis2 and client

Posted by Samisa Abeysinghe <sa...@gmail.com>.
Mathias P.W Nilsson wrote:
> Hi!
>
> I'm looking for a tutorial on axis2. I've managed to embed axis2 in my
> webapplication but there isn't any toturials on how to build the client and
> call the webservice.
>
> Can anyone help me out here. How can I with the minimal amount of code get a
> webservice up and running and call that service from a client?
>   
http://wso2.org/library/95

Samisa...

-- 
Samisa Abeysinghe - Apche Axis2/C
"http://ws.apache.org/axis2/c/?Apache&nbsp;Axis2/C&nbsp;The&nbsp;Web&nbsp;Services&nbsp;Engine"


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