• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

JAX-WS deployment

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
arief hidayat
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 can't beleive you just said that. Now I need to calm down with this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic