I have a web service client which works perfectly fine, within which there is a line that defines the location of the WSDL:
@WebServiceClient(name = "CReceiveMOMessageService",
targetNamespace = "http://...",
wsdlLocation = "CReceiveMOMessageService.wsdl")
The code piece should be exported as a runnable JAR and is intended to work on a remote location.
When I define the location of the WSDL as above, it looks for a WSDL file at the directory in which I run the JAR file. Instead what I would like to do is to add the WSDL file to the project folder and export as JAR after that, and configure wsdlLocation
parameter in a way that it points to the WSDL within the JAR file.
How can this be achieved?