Search code examples
javaxmlweb-servicescommand-linewsdl

wsimport - schema descriptor not defined


i am using wsimport to import the wsdl File from a server. Here is the command I am using:

X:>wsimport -keep -verbose http://xxxxxxxxxx

parsing WSDL...


[ERROR] Schema descriptor {http://XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX in message part "in" is not defined and could not be bound to Java. Perhaps the schema descriptor is not defined in the schema imported/included in the WSDL. You can either a
dd such imports/includes or run wsimport and provide the schema location using -
b switch.

How can I import the wsdl Files?


Solution

  • Specified the exact JDK version

    %AS_HOME%/bin/wsimport -keep -d ./build -p com.sample.hello http://localhost:8080/HelloSvr/HelloService?wsdl