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 aliban <al...@gmx.net> on 2006/05/31 12:33:31 UTC

how to use auto-generated classes

Hello,
I am quite new to Web Services and I have no experience with axis1. For
my eclipse plugin I need to access a database by SOAP Web Service. I
managed to add the minimal libraries to my plugin project and I also
generated two Java classes with the WSDL2Java eclipse plugin.

However I have no idea how to use these classes. Can you point me in
some direction?

In addition to that someone just mentioned: "the disadvantage is that
you need to write a lot of trivial code against 3 lines of code with
jax-rpc"
As I am new to this tasks I have no idea how to consider this. Would you
recommend to use axis1 instead of axis2?

thank you

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


Re: how to use auto-generated classes

Posted by Artur Kraft <kr...@darkfluid.com>.
Hello Aliban,

I'm still using Axis v1.4, so the following code belongs to the usage of 
that axis version.
To use the service on client-side, try the following:
(assuming the naming below:
web service name = "myprog"
web service interface = "MyProgramIF"
web service implementing class = "MyProgram")

MyProgramService loc = new MyProgramServiceLocator();
MyProgramIF service = loc.getmyprog();

//invoke a method on the service
service.someMethod();


hope it helps,
Artur


aliban wrote:
> Hello,
> I am quite new to Web Services and I have no experience with axis1. For
> my eclipse plugin I need to access a database by SOAP Web Service. I
> managed to add the minimal libraries to my plugin project and I also
> generated two Java classes with the WSDL2Java eclipse plugin.
>
> However I have no idea how to use these classes. Can you point me in
> some direction?
>
> In addition to that someone just mentioned: "the disadvantage is that
> you need to write a lot of trivial code against 3 lines of code with
> jax-rpc"
> As I am new to this tasks I have no idea how to consider this. Would you
> recommend to use axis1 instead of axis2?
>
> thank you
>
> ---------------------------------------------------------------------
> 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