I am getting strange parsing error when I try to import a WSDL using wsimport
.
Error:-
org.xml.sax.SAXParseException: Invalid WSDL file: expected {http://schemas.xmlsoap.org/wsdl/}definitions found definitions at line 1)
I checked the WSDL and I am also surprised the first element of it is not
<wsdl:definitions ...>
But rather:
<definitions xmlns:soap="https://schemas.xmlsoap.org/wsdl/soap/" ...>
Could this be the problem? The web service is external, so I dont have any control over the WSDL. One thing I know is that it is generated by JAX-WS 2.1.5. Is it a customized WSDL that my wsimport tool is not able to understand? If yes please tell me how to resolve this problem. Thanks.