So I have a WSDL file which I generate into a java class and make calls on.

The problem is that JAX-WS adds the following annotations, one of which is the location of the WSDL file (wsdlLocation), and this is given a full file path. As can be seen below. And this is prity rubbish because it will only work on my machine.

So my question is; does anyone know what is the point of wsdlLocation is after the WSDL has be used to compile the client side classes?


* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.1.4-b01-
* Generated source version: 2.1
@WebServiceClient(name = "OrganisationSearch", targetNamespace = "", wsdlLocation = "file:/C:/Java/workspace/atradius/src/wsdl/Organisation-Search/organisationsearch.wsdl")
public class OrganisationSearch