Link to home
Start Free TrialLog in
Avatar of mdoland
mdoland

asked on

Get some Java classes from WSDL

I have 2 WSDL-files that I want to generate Java classes from.

1) Would you prefer WSDL2Java or WsImport? Why?

2)  I try to use Wsimport and get an error with one of the files. Any idea why?
Avatar of mdoland
mdoland

ASKER

I forgot the files...
WSDLs.zip
Avatar of mccarl
I forgot the files...

And you forgot to mention the error that you get, which file and exactly how you are calling "wsimport"
Avatar of mdoland

ASKER

Hi, sorry.

This is what I do:
>wsimport -keep -verbose singleWsdl.wsdl


and

>wsimport -keep -verbose SearchService.wsdl


The first one works, but the second gives me this error:

White spaces are required between publicId and systemId.
  line 1 of http://aml.cm1.se/AMLService/SearchService.svc?xsd=xsd0

org.xml.sax.SAXParseException; systemId: http://aml.cm1.se/AMLService/Se
archService.svc?xsd=xsd0; lineNumber: 1; columnNumber: 50; White spaces are required between publicId and systemId.
  line 1 of file:/C:/temp/AML-test/test/SearchService.wsdl

        Failed to parse the WSDL.
ASKER CERTIFIED SOLUTION
Avatar of mccarl
mccarl
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mdoland

ASKER

Great! I didn't get it to work, that way either, but it seems that the WSDL that is working contains it all in one.