• 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
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Deployment of WS

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Need to understand the deployment of a webservice.

I have a service created over Axis. I have a few questions regarding the deployment of this service.

1. Is it that the WSDL also has to be put on the Server.
2. Where all do we have to specify the endpoint URL for the web service. I found it at two places, one on the WSDL and the other on the locator.
3. Which all files has to be deployed on the Server side being very specific.

The problem is my endpoint URL will change when it will go to the prod server, and I cant change the code only for prod server. Any reference or help will be appreciated.

Regards,
B
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

I'm not sure I understand all your questions, but I'll give it a shot.

#1 - The WSDL is only needed by someone creating a client for the WS. If you have done that, then there's no further need for it. What's more, it isn't so much "deployed" as it is generated automatically by the WS stack.

#2 - If by "locator" you mean something that's part of the client, then you're right - the client obviously needs to know which server to go to. If you want to keep that configurable (like for test and production), then the client should read the server name from a config file that you can change without having to change the code.

#3 - I don't understand what you're asking. Can you rephrase that and provide more detail?
 
B Gupta
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:Welcome to JavaRanch.

I'm not sure I understand all your questions, but I'll give it a shot.

#1 - The WSDL is only needed by someone creating a client for the WS. If you have done that, then there's no further need for it. What's more, it isn't so much "deployed" as it is generated automatically by the WS stack.

#2 - If by "locator" you mean something that's part of the client, then you're right - the client obviously needs to know which server to go to. If you want to keep that configurable (like for test and production), then the client should read the server name from a config file that you can change without having to change the code.

#3 - I don't understand what you're asking. Can you rephrase that and provide more detail?



Thanks for this, I guess somehow I got the answers from this reply of yours.

But to rephrase my doubt, I was asking do I need to mention the endpoint URL on the Server side code and secondly, do I need to deploy the WSDL also on the server side.

Regards.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As I said, the WSDL isn't deployed by you, it's deployed by the SOAP engine. But you only need it for development, not for production use (unless you want other people to access it so that they can build client code for the service).

As to the endpoint URL, that's determined by where the SOAP engine is deployed, and how the relevant classes and methods are named (and possibly by some of the annotations if you're using JAX-WS). Beyond that, you don't have control over it, and it's only relevant for the client side, not the server side to begin with.
 
B Gupta
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:As I said, the WSDL isn't deployed by you, it's deployed by the SOAP engine. But you only need it for development, not for production use (unless you want other people to access it so that they can build client code for the service).

As to the endpoint URL, that's determined by where the SOAP engine is deployed, and how the relevant classes and methods are named (and possibly by some of the annotations if you're using JAX-WS). Beyond that, you don't have control over it, and it's only relevant for the client side, not the server side to begin with.



Thanks again.

Any good references for Web services. ?
 
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you can find lot of information here

http://ws.apache.org/
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
WSS4J can be used for securing web services deployed in virtually any application server, but it includes special support for Axis. WSS4J ships with handlers that can be used in Axis-based web services for an easy integration. These handlers can be added to the service deployment descriptor (wsdd file) to add a WS-Security layer to the web service. This is a step by step tutorial for deploying a simple service with Username Token.
 
Paddy spent all of his days in the O'Furniture back yard with this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic