Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsJava code to call Axis2 web svc from java client...can it be generated for me?
https://www.eclipse.org/forums/index.php/mv/msg/73806/230696/#msg_230696
I'm new to Eclipse, but have used NetBeans for several years. Forgive me
if I'm asking an obvious question. I'm just confused at this point about
how to do this task.
I have an existing Web Service (I have the URL of the WSDL). My goal is
to create a Java program that calls the web service, and then provide
instructions to my customers for using Eclipse to call their web services.
I have the Web Tools installed, and I have followed the examples for
creating a Web Service client found here (in fact, I found the tutorials
there very helpful in general!)
In the example at the url above, the Java code to call the web service is
provided in the example (and via a link to ConverterClient.java), so I
guess it cannot be automatically generated in the editor? The reason I
ask is that in NetBeans I could generate a skeleton call to a web service
by drag and drop or by right clicking in the editor at the insertion point
and then choosing from the web services I had defined in the project.
I noted that using "generate test cases" creates a call to the web
service, but that seems a bit inelegant for generating the call.
Am I missing something obvious?
Thanks for any help :-)
Meg]]>Meg Watson2009-04-24T21:42:33-00:00Re: Java code to call Axis2 web svc from java client...can it be generated for me?
https://www.eclipse.org/forums/index.php/mv/msg/73806/230722/#msg_230722
I faced similar situation before.
I think Dynamic Web Project has a problem with Axis2.
Maybe, some libraries of Axis2 are missed in the Dynamic Web Project.
Anyway, I solved this problem like this.
1. Copy all libraries from Axis lib to Eclipse Dynamic Web Project Web
Libraries Folder.
For instance, C:/Axis2-1.4.1/lib/<all libs> =>
Eclipse:/DynamicWebProject/WebContent/WEB-INF/lib
2. And Dynamic Web Client Project Also should be copied all libraries of the
Axis2, too.
It can be possible at least one you had tried "generate test cases".
After then, you try "generate test cases" again.
I hope this is for your solution.
Sincerely,
SangJoon, Park
"Meg Watson" <meg.watson@hp.com> wrote in message
news:d9c7f624fd06cbbbe174245e4418dbd7$1@www.eclipse.org...
> Hi,
>
> I'm new to Eclipse, but have used NetBeans for several years. Forgive me
> if I'm asking an obvious question. I'm just confused at this point about
> how to do this task.
> I have an existing Web Service (I have the URL of the WSDL). My goal is
> to create a Java program that calls the web service, and then provide
> instructions to my customers for using Eclipse to call their web services.
>
> I have the Web Tools installed, and I have followed the examples for
> creating a Web Service client found here (in fact, I found the tutorials
> there very helpful in general!)
>
> http://wiki.eclipse.org/Creating_a_bottom-up_Axis2_Web_servi ce
>
> In the example at the url above, the Java code to call the web service is
> provided in the example (and via a link to ConverterClient.java), so I
> guess it cannot be automatically generated in the editor? The reason I
> ask is that in NetBeans I could generate a skeleton call to a web service
> by drag and drop or by right clicking in the editor at the insertion point
> and then choosing from the web services I had defined in the project.
>
> I noted that using "generate test cases" creates a call to the web
> service, but that seems a bit inelegant for generating the call.
>
> Am I missing something obvious?
>
> Thanks for any help :-)
>
> Meg
>]]>SangJoon, Park2009-04-27T05:08:50-00:00