Is it possible to instruct axis to use a particular Uniform Resource Name (URN) as the targetNamespace in the generated WSDL file?

 

By default, the WSDL’s targetNamespace is the same as the service’s /definitions/service/port/address/@location (the URL of the axis-hosted web service).  I am creating an axis web service we will distribute as part of a tutorial for our product, along with some sample messages to send to the web service.  Since I don’t know the hostname of the machine where the user will install the web service, I cannot guess the web service’s URL to use as a namespace inside the sample messages.  Therefore, I must leave it to the user to edit the sample message in order to modify the operation’s namespace.  If it were possible for me to set the WSDL’s targetNamespace as a URN (such as http://www.amberpoint.com/tutorial), I could avoid this problem.

 

Thanks

 

 

Reply via email to