Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error parsing wsdl - The sytem cannot find the path specified

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, enter image description here

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: enter image description here

like image 758
Farhan Shirgill Ansari Avatar asked May 05 '15 20:05

Farhan Shirgill Ansari


1 Answers

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
like image 70
Mick Mnemonic Avatar answered Nov 09 '22 00:11

Mick Mnemonic