This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes How to retrieve my WebServices' URLs? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to retrieve my WebServices Watch "How to retrieve my WebServices New topic
Author

How to retrieve my WebServices' URLs?

Yuri Morais
Greenhorn

Joined: Jul 10, 2006
Posts: 8
Hello folks,
How can I retrieve dinamically the WebServices' URLs that are running in my container (JBoss) ?
I would like that when the component were deployed, I could retrieve its URL and persist it.
gar tek
Greenhorn

Joined: Mar 07, 2007
Posts: 10
You can write a listener class or a filter.
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
I'm not sure what you mean by "persist the URL", but generally web services announce their presence through WSDL. Of course, to use WSDL, you need to know which WS is available at which URL. If you don't know that, but are looking for a way to discover WS, have a look at UDDI, which acts as a kind of registry for WS.
Yuri Morais
Greenhorn

Joined: Jul 10, 2006
Posts: 8
gar tek:
What kind of listener? Do you know a specific one?


Ulf Dittmer:
I know the URLs are available at http://localhost:8080/jbossws/services,
but I want that the component itself retrieve its own URL for after that, call my persistence service sending this URL.
 
Have you checked out Aspose?
 
subject: How to retrieve my WebServices' URLs?
 
It's not a secret anymore!