Eclipse WTP, Axis 2 Web Service Client - java

I'm trying to build a web service and a client for this service. I'm using Eclipse 3.5.1 with axis2-1.4.1. I'm facing a problem:
I created the web service via the web service wizard and the service shows up in the axis service list. If I porint to the wsdl - its generated.
Now when I'm trying to build the client, I choose the wsdl, the client project and take the next button, well at the client web service configuration everything is empty. There is nor service name, no port name. Am I facing a bug? Anyoneelse faced something like this?
Regards

Well, so let me sum up:
The eclipse wizard seems buggy yes. It didn't show anything after the first step. What I've done? I created my stubs from the command line and WSDL2Java. The produced code works.
This problem occus with axis2-1.5.1 too, so no difference here.

I faced the same issue.
You can use Eclipse Eclipse Java EE IDE for Web Developers.
Version: Helios Service Release 1
And Axis2-1.3. It creates the stub.

I'm using Juno and Axis2 1.6.2 and I'm getting the same problem - the WTP wizard just doesn't work for me.
I downloaded the Code Generator Wizard for Eclipse Plug-in and this produced the client code for me. Follow the link for more info on installation and use.

Related

Java SOAP WSDL service NoClassDefFoundError

I have been struggling with the creation of a SOAP web service and I simply can't get it working.
I have written my service, and then, from Eclipse, I created a Web service. And although the saving in the db worked just fine when I tested the service locally (created a simple main method), when I try testing it from the generated Web service I get NoClassDefFoundError.
If anyone has the time to take a look I would be gratefull.
https://dane289#bitbucket.org/dane289/soapservice_problems.git
Thank you in advance!
The problem was that eclipse was not adding the jars to the WAR file.
After adding them to the war via the eclipse menu Assembly something everything worked fine.

can I debug restful web service exist in another project netbeans

I want to debug restful web service exist in another project using netbeans IDE
How can I do that ?
YES it is possible in netbeans using xdebug you need to configure xdebug on remote server and specify ip and port in netbeans for more information visit this link
http://forums.netbeans.org/ntopic29222.html
I know, it's not dirctly related to your question, but with Eclipse you can debug web services out of the box without any additional configuration.

unable to add the following facets axis2 web services core

For one of my project, I required to create Web service using Apache Axis2.
I started reading about the framework and followed the guideline given here.
However, I am getting an error "Failed While Installing Axis 2 Web Services Core 1.1".
Also when I tried to explicitly create the web service on the same project, I am getting error "unable to add the following facets axis2 web services core". I have referred this question too, but since I am already using Eclipse 3.6 (Helios), the answer does not work for me.
Thank you for the help...

Creating a web-services client in Eclipse

I need to create a web services client in java/Eclipse to interface with a test management tool from my java testing code.
I successfully set up the client in NetBeans. This was a fairly painless process using NetBeans' wizard.
However, Eclipse is our IDE of choice, so I need to get the code over to it. I have found and followed steps to implement a web services client in Eclipse. The process in Eclipse is a lot clunkier IMO, but I successfully generated the client.
However, Netbeans and Eclipse don't seem to agree on what the information in the wsdl file means. NetBeans discovers/creates a larger collection of classes in its 'generated sources' folder than Eclipse does.
I must be missing something?
Looking for anyone who tried to create a ws client in both Netbeans and Eclipse, and is able to shed some light on why there are differences in the code created from the wsdl file, and how to work around it.
Thanks.
When you create a client using the wizard "Web Service Client" Eclipse, you are using a runtime for WS. I'm using Java EE developer version of Eclipse Helios (3.6) + JBoss Tools, With JBoss 6.0 server, and I have 4 different runtimes available.
Apache Axis
Apache Axis2
Apache CXF 2.x
JBossWS
Which runtime (framework) are you using under Netbeans?
Using JBossWS, I generated WS client classes from WSDL, and I'm using them in a maven Java EE 6 application, deployed to a JBoss 6.0, and it works perfectly, inside Eclipse and outside (deployed).

Exception in creating webservices from axis2 with tomcat6 server

I am trying to create a webservice from java application.
I am using tomcat 6 server and axis2 ..i had installed axis2 and set the runtime location for axis2 inside Web services>Axis2 preferences.
This is the exception am getting when am trying to create a webservice..
Exception occurred while reading or writing file {0}The Axis2 facets cannot be installed since the Axis2 runtime location has not been set.
Please go to the Web Services preference page and set the Axis2 runtime location under Axis2 Preferences.
Can anyone give a solution for this?
If u have set axis 2 preferences properly then i think u have not set the configuration properly while creating the project in eclipse.
Follow the below steps..
In eclipse go to File- New- Dynamic Web Project..
In configuration select custom and modify..
Check the Axis2 Web Services and click OK..
Follow normal steps afterwards.. It should work now....
Create a dummy dynamic webproject with axis2 feature and ,
then try the old project of yours
Go to your services java file and
right click and choose webservices -->
create webservice -->
choose webservice runtime to axis2 -->
and continue it should work now

Categories

Resources