File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes JAX-WS deployment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAX-WS deployment" Watch "JAX-WS deployment" New topic

JAX-WS deployment

arief hidayat
Ranch Hand

Joined: Apr 13, 2007
Posts: 33
Hi guys.. I want to ask
I develop web service..(using netbeans). On its wdsl..

the server used is running on localHost port 9080.

Then I generate WS client on another project to access this services.

The client can access the service when I try it on netbeans.

How if I deploy the war file of web service into another same server (glassfish) but different port. I.e. now on glassfish localhost:8080.
Note that I did not rebuild the package. So, the WSDL still showing localhost:9080.

How could the ws client access this new location? (the service (method and class name) still remain. It just change the URL port in deployment.

Hope any of you reply soon.
Peer Reynders

Joined: Aug 19, 2005
Posts: 2933
Originally posted by arief hidayat:
It just change the URL port in deployment.

Usually the constructor for the class that extends will accept a wsdlDocumentLocation URL - change the wsdlDocumentLocation to a WSDL that contains the correct endpoint address.
arief hidayat
Ranch Hand

Joined: Apr 13, 2007
Posts: 33
Thanks.. I'll try it.

But I have another problem.
Firstly I use glassfish running on port 8080.
Then I change the port to other, 9080.
But now I can't find the wsdl location.. neither in 8080 nor 9080.
I try to clean and build project. Restart the server. But no result.
I am using netbeans 5.5

Any help?
[ March 04, 2008: Message edited by: arief hidayat ]
I agree. Here's the link:
subject: JAX-WS deployment
It's not a secret anymore!