I have a SOAP Web service that I extract from .wsdl
with wsimport
Now, when opening generated file, I have file://
reference that I would need to remove.
I moved WSDL to src/main/resources/Services/RecherchePoint-v2.0.wsdl
But now, I have several references I don't know how to update:
@WebServiceClient(name = "RecherchePointV2.0", targetNamespace = "http://www.enedis.fr/sge/b2b/services", wsdlLocation = "file:/home/ubuntu/wsdl/Services/RecherchePoint/RecherchePoint-v2.0.wsdl")
...
static {
URL url = null;
WebServiceException e = null;
try {
url = new URL("file:/home/ubuntu/wsdl/Services/RecherchePoint/RecherchePoint-v2.0.wsdl");
} catch (MalformedURLException ex) {
e = new WebServiceException(ex);
}
RECHERCHEPOINTV20_WSDL_LOCATION = url;
RECHERCHEPOINTV20_EXCEPTION = e;
}
I tried changing:
file:/home/ubuntu/wsdl/Services/RecherchePoint/RecherchePoint-v2.0.wsdl"
to
../../../resources/wsdl/Services/RecherchePoint/RecherchePoint-v2.0.wsdl"
but it is not working.
Any idea how to change it ?