i'm creating an application for java desktop. This application accessing our webserver which running RESTful and SOAP based webservice.
I'm having trouble when adding new service client in services tab in netbeans 7.1.2. When adding new RESTful webservice the netbeans always says:
"cannot determine wadl or wsdl"
What i do is placing the restful url :
http://localhost:8080/Walcoo/resources/application.wadl
into URL textfield.
How to solve this error? I've googled it, but it shows that in netbeans 6.9 it is a bug. But how about in netbeans 7.1.2?
Thank you
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.
Essentially I am trying to create a simple SOAP Webservice in Java, Maven, and Spring.
I have tried following tutorials, books, and just hacking at it. Can anyone help please.
Background
We have a project which is effectively a bunch of libraries boiling
to a handful of interfaces.
The project is a maven project created using the spring framework,
mainly roo.
We're running the STS eclipse IDE which has a vmware (vSphere)
virtual web server.
What I'm trying to achieve
Add web services for SOAP and HTTP endpoints.
Have existing WSDLs for these web services.
What I have tried:
1. Creating a web service with "Top down Java bean Web Service" type pointing to the wsdl, VMware server.
Creates a web service project separate from my existing project.
Web Service seems to be synchronised in the virtual web server.
Right clicking to the home page for the web server results in the 404 error.
Looking at the localhost:8080 shows a running virtual web server page.
Problems:
Project created is in the eclipse workspace rather than the source folders. This results in source control commitment issues.
Is it normal for all web services to be a separate project per web service in eclipse?
Right clicking to the home page for the web server results in the 404 error.
Not sure how to debug the 404 error to determine the issue.
2. Created an SomeNameEndpoint.java file and generated a web service project from this.
Creates a web service project separate from my existing project.
Web Service seems to be synchronised in the virtual web server.
Right clicking to the home page for the web server results in the 404 error.
Looking at the localhost:8080 shows a running virtual web server page.
package shlonline.integration.endpoints;
import javax.jws.WebMethod;
import javax.jws.WebService;
import org.springframework.web.context.support.SpringBeanAutowiringSupport;
#WebService(serviceName = "myServiceName")
public class myServiceEndPoint extends SpringBeanAutowiringSupport
{
#WebMethod
public boolean runWebMethod(String input)
{
return false;
}
}
Problems:
Right clicking to the home page for the web server results in the 404 error.
Not sure how to debug the 404 error to determine the issue.
This tutorial along was really helpful for me, the project is available for github download, and uses maven and spring web services. It uses spring-ws with spring annotations of #Endpoint and #PayloadRoot annotations rather than the #WebService you have above.
http://briansjavablog.blogspot.com/2013/01/spring-web-services-tutorial.html
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 am newbie to java/eclipse and also to creating web services.Now i am trying to host the web service which is created in java using eclipse.
http://www.softwareagility.gr/index.php?q=node/29
i am following the above link for my reference.
My problem is,i got struggle on after creating a web service.I have created a web service and run it through the tomcat server and its showing like the below image
this is the link of wsdl of my web service i got
"http://localhost:8080/ResourceA/services/Myservice?wsdl"
Now i need to know,what steps i want to do after these steps, to publish and run my web service through my cloud server?
Thanks in advance!..
Export the project as a Web Archive (.war file) and deploy that on the server.
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.