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?
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?
I forgot the files...
And you forgot to mention the error that you get, which file and exactly how you are calling "wsimport"
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.SAXParseExcept ion; 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/tes t/SearchSe rvice.wsdl
Failed to parse the WSDL.
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.SAXParseExcept
archService.svc?xsd=xsd0; lineNumber: 1; columnNumber: 50; White spaces are required between publicId and systemId.
line 1 of file:/C:/temp/AML-test/tes
Failed to parse the WSDL.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
ASKER
WSDLs.zip