Unable to create java code from local wsdl file.


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:


(Obviously I'm on windows).

If I try fixing the url like so:


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.


Comment actions Permalink

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..

Comment actions Permalink

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.


Please sign in to leave a comment.