Unable to create java code from local wsdl file.
Hi,
I'm working on creating a web services client for web services that aren't currently up and running, but I do have a wsdl file.
The problem is that when I do "Create java code from wsdl or wadl" and browse to the file, I get the following message:
Path to wsdl is not valid
The dialog box has the url filled in with something like this after I browse:
file:/C:/resources/mywsdl.wsdl
(Obviously I'm on windows).
If I try fixing the url like so:
file://C:/resources/mywsdl.wsdl
I get a slightly different error:
Wsdl url connection exception
I don't really want to set up a server just to get to this wsdl, so is this a bug? Or am I doing something wrong?
Thank in advance.
Geoff
请先登录再写评论。
Hello Geoff!



What's the version of IntelliJ IDEA you're using? Generation from wsdl is not a big deal. All you need is do the following steps:
1. Create new module/project
2. Select WebServices Client on Facets page
3. After the module/project initialization you will see the following dialog:
4. If you load wsdl from local drive, make sure that all necessary files (xsd schemes etc) are on their place.
That's it..
i stumbled upon the same problem and solve it by adding "<?xml version="1.0" encoding="UTF-8"?>" at the top of wsdl, it was missing.