File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

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.
Thanks.
Peer Reynders
Bartender

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


Usually the constructor for the class that extends javax.xml.ws.Service will accept a wsdlDocumentLocation URL - change the wsdlDocumentLocation to a WSDL that contains the correct endpoint address.


"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
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?
Thanks
[ March 04, 2008: Message edited by: arief hidayat ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAX-WS deployment
 
Similar Threads
Beginner needs help with web service endpoint name
Eclipse 3.3, Glassfish, WebServices and wsimport
Message Handlers and Axis
How to access a remote SOAP using JAX-WS
Sample Questions for 288 - Need answers