My wsdl is at location http://localhost:9999/ws/hello?wsdl
.
I am using wsimport tool to parse the published wsdl file, and generate necessary client files (stub) to access the published web service.
I am unable to parse this wsdl,
How can I resolve this?
HelloWorld.java is the interface and it's implementation is HelloWorldImpl.java Both of them resides in the below directory,
C:\Users\ANSARI\Desktop\Lexicon\WorkSpaceLuna\WebServices\RPCStyle\src\com\farhan\ws
wsdl file:
You are executing the wsimport
command from a working directory whose path contains white space characters (Program Files
). This is a likely source of problems for the code generation (JAXB binding objects, WS stubs) part of wsimport
.
When output folders for generated files are not explicitly specified using the -d
or -s
options, the current working directory will be used as the default value. It seems like wsimport
does not surround the directory parameter in quotes when it internally invokes JAX-WS / JAXB code-generation tools.
To fix the problem, you can run the command from a directory that does not have whitespace in the path. You also need to surround the path to wsimport
with quotes when calling the command:
cd C:\temp
"C:\Program Files\Java\jdk1.8.0_25\bin\wsimport" -keep http://localhost:9999/ws/hello?wsdl
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With