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
Related
I've created a Java RESTful web service using NetBeans 8.0 and GlassFish server 4.0, using my database(local). When I click the "Test RESTful web services" my default web browser opens with an alert saying:
Cannot access WADL: Please restart your RESTful application, and
refresh this page.
Note: Using the default sample database everything works fine.
Update: I'm following this tutorial https://netbeans.org/kb/docs/websvc/rest.html
try changing the version of jdk and tomcat.
in netbeans in your source package where the restful .java file is click on that file and one of the lines of code will have an error lightbulb saying that restfull is not configured properly click on that and everything will be fixed.
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...
I'm trying to follow these tutorials on how to get Netbeans (v 7.1.1) to automatically create a SOAP web service client:
http://netbeans.org/kb/docs/websvc/client.html
http://blog.jdevelop.eu/2008/02/27/creating-soap-web-services-with-netbeans-6/
But I can't seem to find the Web Service from WSDL file type (as shown below) on some of my projects.
Some of my projects do display that file type and some don't. The particular project for which I need to create the SOAP client does NOT list that file type. Why would this be?
They are all Web Application projects as far as I know of (Struts2 + Spring + Hibernate frameworks). I checked them out of subversion from Netbeans projects created by other programmers. It's possible that the original Netbeans project was created in a previous version of Netbeans - not sure if this matters.
How do I get the Web Service from WSDL new file type to show up for my existing project?
'Web Service from WSDL' option only comes when you choose to create Web projects. In the desktop projects(Java), there is a option 'Web Service Client' in which you can specify the wsdl URL and it will create the web service references for you.
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).
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.