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 Brian Hendrickson <he...@gmail.com> on 2007/08/17 03:37:25 UTC
[Axis2] New to Axis, having problems
Hello,
I'm trying to create my first Axis2 application and I'm having a problems.
I'm creating a simple service that takes a string and echoes it back to the
client. I have generated service and client stubs from a wsdl and filled
them in as directed in the User's Guide, and the service builds fine, but I
can't build the client. I get the following error:
compile.src:
[javac] Compiling 1 source file to /home/brian/src/echo/build/classes
[javac] /home/brian/src/echo/src/echo/Client.java:15: cannot find symbol
[javac] symbol : method Echo(echo.Echo)
[javac] location: class echo.EchoServiceStub
[javac] EchoResponse res = stub.Echo(req);
[javac] ^
[javac] 1 error
I am importing the stub that was generated for my client, but it still can't
find the method. Can please someone help the problem? I am very new.
Thanks
Brian
Re: [Axis2] New to Axis, having problems
Posted by Lahiru Sandakith <sa...@gmail.com>.
Hi Brian,
Actually the problem here is the method that you are trying to invoke here
Echo is not accepting the type of the req(of the type echo.Echo) that you
are passing as the parameter. Try searching generated stub to find what will
be the correct type of the paran that Echo needed to be passed in and create
new instance of that and set the string that you need to echo, and then pass
tha reference to the stub.Echo(ref) it should work then,
Thanks
Lahiru
On 8/17/07, Brian Hendrickson <he...@gmail.com> wrote:
>
> Hello,
>
> I'm trying to create my first Axis2 application and I'm having a problems.
> I'm creating a simple service that takes a string and echoes it back to the
> client. I have generated service and client stubs from a wsdl and filled
> them in as directed in the User's Guide, and the service builds fine, but I
> can't build the client. I get the following error:
>
>
> compile.src:
> [javac] Compiling 1 source file to /home/brian/src/echo/build/classes
> [javac] /home/brian/src/echo/src/echo/Client.java:15: cannot find
> symbol
> [javac] symbol : method Echo(echo.Echo )
> [javac] location: class echo.EchoServiceStub
> [javac] EchoResponse res = stub.Echo(req);
> [javac] ^
> [javac] 1 error
>
> I am importing the stub that was generated for my client, but it still
> can't find the method. Can please someone help the problem? I am very new.
>
> Thanks
> Brian
>
--
Thanks
Lahiru Sandakith
http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC 1AB1 FE5E 7464 1F01 9A0F
Re: [Axis2] New to Axis, having problems
Posted by Brian Hendrickson <he...@gmail.com>.
Charitha,
Thank you very much for your kind help. I think I understand better now!
Regards,
Brian
On 8/16/07, Charitha Kankanamge <ch...@wso2.com> wrote:
>
> Hello Brian,
> I was able to invoke your service with ADB(Axis data binding, which is
> the default code generation mechanism). The generated client and service
> sources are attached here with. If you are using Eclipse as JAVA IDE,
> please create a new project from ant build file and run the client
> through eclipse. You should get the response back. I did the service and
> client generation using ADB since I'm not much familiar with xmlbeans.
>
> Let me know if you face any issues with the attached code.
>
> Also, I would recommend you to follow the Axis2 Quick start guide [1]
> and user guide [2] before trying out axis2 advanced user guide.
>
> [1] http://ws.apache.org/axis2/1_3/quickstartguide.html
> [2]http://ws.apache.org/axis2/1_3/userguide.html
>
> regards
> Charitha
>
> Brian Hendrickson wrote:
>
> > Hi Charitha,
> >
> > Thanks for offering to help. Here is my service.
> >
> > Brian
> >
> > On 8/16/07, *Charitha Kankanamge* < charitha@wso2.com
> > <ma...@wso2.com>> wrote:
> >
> > Hello Brian,
> > Will you be able to send me your service archive? I'll deploy it and
> > write a client to invoke the service.
> >
> > regards
> > Charitha
> >
> >
> > Brian Hendrickson wrote:
> >
> > > Hello,
> > >
> > > I'm trying to create my first Axis2 application and I'm having a
> > > problems. I'm creating a simple service that takes a string and
> > echoes
> > > it back to the client. I have generated service and client stubs
> > from
> > > a wsdl and filled them in as directed in the User's Guide, and the
> > > service builds fine, but I can't build the client. I get the
> > following
> > > error:
> > >
> > >
> > > compile.src:
> > > [javac] Compiling 1 source file to
> > /home/brian/src/echo/build/classes
> > > [javac] /home/brian/src/echo/src/echo/Client.java:15: cannot
> > find
> > > symbol
> > > [javac] symbol : method Echo(echo.Echo )
> > > [javac] location: class echo.EchoServiceStub
> > > [javac] EchoResponse res = stub.Echo(req);
> > > [javac] ^
> > > [javac] 1 error
> > >
> > > I am importing the stub that was generated for my client, but it
> > still
> > > can't find the method. Can please someone help the problem? I am
> > very
> > > new.
> > >
> > > Thanks
> > > Brian
> >
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > <ma...@ws.apache.org>
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> > <ma...@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: [Axis2] New to Axis, having problems
Posted by Charitha Kankanamge <ch...@wso2.com>.
Hello Brian,
I was able to invoke your service with ADB(Axis data binding, which is
the default code generation mechanism). The generated client and service
sources are attached here with. If you are using Eclipse as JAVA IDE,
please create a new project from ant build file and run the client
through eclipse. You should get the response back. I did the service and
client generation using ADB since I'm not much familiar with xmlbeans.
Let me know if you face any issues with the attached code.
Also, I would recommend you to follow the Axis2 Quick start guide [1]
and user guide [2] before trying out axis2 advanced user guide.
[1] http://ws.apache.org/axis2/1_3/quickstartguide.html
[2]http://ws.apache.org/axis2/1_3/userguide.html
regards
Charitha
Brian Hendrickson wrote:
> Hi Charitha,
>
> Thanks for offering to help. Here is my service.
>
> Brian
>
> On 8/16/07, *Charitha Kankanamge* < charitha@wso2.com
> <ma...@wso2.com>> wrote:
>
> Hello Brian,
> Will you be able to send me your service archive? I'll deploy it and
> write a client to invoke the service.
>
> regards
> Charitha
>
>
> Brian Hendrickson wrote:
>
> > Hello,
> >
> > I'm trying to create my first Axis2 application and I'm having a
> > problems. I'm creating a simple service that takes a string and
> echoes
> > it back to the client. I have generated service and client stubs
> from
> > a wsdl and filled them in as directed in the User's Guide, and the
> > service builds fine, but I can't build the client. I get the
> following
> > error:
> >
> >
> > compile.src:
> > [javac] Compiling 1 source file to
> /home/brian/src/echo/build/classes
> > [javac] /home/brian/src/echo/src/echo/Client.java:15: cannot
> find
> > symbol
> > [javac] symbol : method Echo(echo.Echo )
> > [javac] location: class echo.EchoServiceStub
> > [javac] EchoResponse res = stub.Echo(req);
> > [javac] ^
> > [javac] 1 error
> >
> > I am importing the stub that was generated for my client, but it
> still
> > can't find the method. Can please someone help the problem? I am
> very
> > new.
> >
> > Thanks
> > Brian
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> <ma...@ws.apache.org>
> For additional commands, e-mail: axis-user-help@ws.apache.org
> <ma...@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: [Axis2] New to Axis, having problems
Posted by Brian Hendrickson <he...@gmail.com>.
Hi Charitha,
Thanks for offering to help. Here is my service.
Brian
On 8/16/07, Charitha Kankanamge <ch...@wso2.com> wrote:
>
> Hello Brian,
> Will you be able to send me your service archive? I'll deploy it and
> write a client to invoke the service.
>
> regards
> Charitha
>
>
> Brian Hendrickson wrote:
>
> > Hello,
> >
> > I'm trying to create my first Axis2 application and I'm having a
> > problems. I'm creating a simple service that takes a string and echoes
> > it back to the client. I have generated service and client stubs from
> > a wsdl and filled them in as directed in the User's Guide, and the
> > service builds fine, but I can't build the client. I get the following
> > error:
> >
> >
> > compile.src:
> > [javac] Compiling 1 source file to
> /home/brian/src/echo/build/classes
> > [javac] /home/brian/src/echo/src/echo/Client.java:15: cannot find
> > symbol
> > [javac] symbol : method Echo(echo.Echo )
> > [javac] location: class echo.EchoServiceStub
> > [javac] EchoResponse res = stub.Echo(req);
> > [javac] ^
> > [javac] 1 error
> >
> > I am importing the stub that was generated for my client, but it still
> > can't find the method. Can please someone help the problem? I am very
> > new.
> >
> > Thanks
> > Brian
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
Re: [Axis2] New to Axis, having problems
Posted by Charitha Kankanamge <ch...@wso2.com>.
Hello Brian,
Will you be able to send me your service archive? I'll deploy it and
write a client to invoke the service.
regards
Charitha
Brian Hendrickson wrote:
> Hello,
>
> I'm trying to create my first Axis2 application and I'm having a
> problems. I'm creating a simple service that takes a string and echoes
> it back to the client. I have generated service and client stubs from
> a wsdl and filled them in as directed in the User's Guide, and the
> service builds fine, but I can't build the client. I get the following
> error:
>
>
> compile.src:
> [javac] Compiling 1 source file to /home/brian/src/echo/build/classes
> [javac] /home/brian/src/echo/src/echo/Client.java:15: cannot find
> symbol
> [javac] symbol : method Echo(echo.Echo )
> [javac] location: class echo.EchoServiceStub
> [javac] EchoResponse res = stub.Echo(req);
> [javac] ^
> [javac] 1 error
>
> I am importing the stub that was generated for my client, but it still
> can't find the method. Can please someone help the problem? I am very
> new.
>
> Thanks
> Brian
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org