Had similar problem. wsimport should generate a .java file called your_ws_nameService.java. In this file you should have section that looks something like this:
static {
URL url = null;
try {
URL baseUrl;
baseUrl = com.oracle.xmlns.orawsv.ORAWSVService.class.getResource(".");
url = new URL(baseUrl, "http://127.0.0.1:7101/test/test?WSDL");
} catch (MalformedURLException e) {
logger.warning("Failed to create URL for the wsdl Location: 'http://127.0.0.1:7101/test/test?WSDL', retrying as a local file");
logger.warning(e.getMessage());
}
ORAWSVSERVICE_WSDL_LOCATION = url;
}
Change this section to something like this:
static {
URL url = null;
try {
URL baseUrl;
baseUrl = mypackage.my_ws_client.my_ws_clientService.class.getResource("my_ws.wsdl");
url = new URL(baseUrl,"");
} catch (MalformedURLException e) {
logger.warning("Failed to create URL for the local wsdl file.");
logger.warning(e.getMessage());
}
SENDINFOSERVICE_WSDL_LOCATION = url;
}
This will read the WSDL file that is located inside your client. Of course you need to first have it there, which, like kolossus suggested, you can just download from the browser.