• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help on Making the service available

 
M Mehta
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have recently wrote my first web service successfully with axis and deployed on websphare. I am able to call the web service using the URL like

http://localhost:9081/TradeSystem/services/FindTrade

Now I want this service to be called from other system using the URL something like

http://anyname.com:9081/TradeSystem/services/FindTrade

Is it possible to make some changes in websphare to make a service available like this?

Thanks,
Me
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Assuming you have the anyname.com name registered to the server address in question, you may already be ready to invoke the service as you describe.
The only thing you need to make sure is how your server handles a request for the WSDL of the service using the following URL:
http://anyname.com:9081/TradeSystem/services/FindTrade?wsdl
Some servers, namely GlassFish, will detect the server address used in the request for the WSDL and automatically insert it into the returned WSDL, replacing the address of the service.
If your server does not do this, then you may have to edit the WSDL manually and redeploy the service.
Best wishes!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic