Basic question.
I've compiled and deployed to a local tomcat the war file that gets created in the sample cxf project java_first_spring_support (I followed the tutorial given here but using latest versions from cxf site : http://cxf.apache.org/docs/writing-a-service-with-spring.html ) but can't figure out how to test if it's working? my tomcat manager list apps page says it's running but not sure what to do beyond that.
Can I hit it with a http request via the browser to see the wsdl? If so what url should I use beyond my 'http://localhost:8080' url?
Is there no wsdl with this project and I should just craft my own soap request? and if so what should the structure be and what url should I use?
Well, figured it out. Went back to web.xml 101 and found my answer.
The generated wsdl is available from :-
http://localhost:8080/JavaFirstSpringSupport/services/HelloWorld?wsdl
Context of the app was : 'JavaFirstSpringSupport' (got this from my apps list page in tomcat) Got the services part by refering to the url pattern element in the deployed web.xml
Related
I have got a webService without ui. It simple jax-ws app that will allow to manage users via soap requests. I tried to deploy it on websphere. It was deployed, But! my app doesn't appear in Service Providers and i can't get access to wsdl file via url that i pass in wsdlsoap:aderess location. It haven't got any servlets and other stuff. I create my app using template that deploy with success, it appear in Service Providers. I research all internet, but idk what go wrong.
P.S: Template project was eclipse project. I just add maven and has no idea why it wouldn't work.
The fact that your web service hasn't appeared in the Service Providers section means you've deployed it the wrong way.
Check whether you've selected the "Deploy web-services" option during deployment.
You probably got an issue in your trace.log file which possibly references to the ffdc, check it to investigate the problem.
You also haven't mentioned if you using servlet or EJB-based web services.
I succesfully created an restfull webservice with netbeans and glassfish.
If I test the service locally (on localhost) i can POST, PUT, DELETE, and so on...
I also have my own domain on the internet...I pay for it every month.
It seems like a simple job but for some reason I can't find the solution to deploy my restfull webservice to that domain.
Like if I enter the URL of my domain with specific URL info that I would get an JSON respond.
I googled around...but it seems I'm looking at the wrong places.
So...
1) How can I deploy my local restful service to my domain online
2) is it possible trough netbeans and glassfish ?
3) Will I have to use an external application ?
thanx in advance
I've Googled how to but I can't seem to find a step-by-step guide for a beginner. I just want to make sure a class is working and printing fine. A lot of tutorials said to just put the URL in the browser but I don't even know how to get the URL of my web service.
What I've done so far:
1. Created a WAR file out of the project
2. Deployed the WAR file on Tomcat
By default, the path will be based on the name of your WAR file, but can be easily configured.
see this response: How to set the context path of a web application in Tomcat 7.0
I followed this tutorial -documentation about Liferay Web service.
I runned Lifaray on tomcat
If I use http://localhost:8080/api/axis/Portal_UserService?wsdl by browser I have a response.
When I create a webService Client on Eclipse and I put this url http://localhost:8080/api/axis/Portal_UserService?wsdl in the Service Definition...
but I have this error message:
No server can be found and WebServiceProject does not exist. Choose an existing project or use the preferences to configure a server runtime.
Why?
create dynamic web project and configure a server then add wsdl .
This does not mean that the server (e.g. Liferay) can't be found but notifies you that Eclipse doesn't know where to put/how to configure the resulting WebService: It needs a server runtime and a WebServiceProject - e.g. you can create a WebServiceClient inside a project - if no suitable project exists, eclipse will complain.
So: Everything is fine on the Liferay side. You'll need infrastructure in your IDE to be able to go forward with this operation
I could not find any solution to this, for some reason Eclipse didn't recognize a valid wsdl. I downloaded a trial version of IntelliJ IDEA 13 Ultimate and setup the Web Service Client through there. Everything worked properly.
I'm trying to run a simple JAX-WS example I found on the web. So I wanted to setup Tomcat 7 under windows xp using Eclipse Helios 32 bit as the web server.
I remembered I had to have my app added as a resource to the Tomcat server, but nothing is coming up as a resource to add. I just have WS-Server and WS-Client projects for the app.
I've done this before, checked the server.xml and see http 1.1 port is 8080, but when I start up Tomcat under eclipse I'm getting a 404 error with this url: http://localhost:8080/, so Tomcat isn't really running properly.
What am I missing here?
Thanks!
If you're getting a 404 - that means the web server is running. This likely means you don't have anything mapped to the path specified (no servlets/default web page/etc).
Either make a servlet and add it to your web.xml or define a home page html file.
FYI, if you use the "Dynamic Web Project" setup; most of this is done for you. Here is a youtube video I always default to when I need to get a review on how to set up a quick tomcat instance in eclipse.