06-05-2014 09:18 AM
Hi ,
I'm new to using wsimport, so please bear with me. I'm trying to compile wsdl and create java classes. Below is the command I'm using and it fails all the time.. Can you please help me understand what am I doing wrong here ? Any support or guidance will be much appreciated.
wsimport -keep -verbose -b files\input\AXLSoap.xsd files\input\AXLAPI.wsdl
From command prompt -
parsing WSDL...
[ERROR] Schema descriptor {http://localhost:8080/amp/static/resources/}addSipProfile in message part "axlParams" is not defined and could not be bound
to Java. Perhaps the schema descriptor {http://localhost:8080/amp/static/resources/}addSipProfile is not defined in the schema imported/included in the WSDL. You can either add such imports/includes or run wsimport and provide the schema location using -b switch.
line 21 of files\input\AXLAPI.wsdl
Thanks,
Sirish.
06-09-2014 05:27 AM
Hi Sirish,
wsimport is a command-line tool to generate client and service artifacts from WSDL. The utility is part of the JAX-WS standard and began shipping with the Java platform starting with version 6.
Please browse this url JAX-WS RI 2.1.1 -- wsimport for related information. Also please try the solution in this URL-
java - Referenced type can not be found while trying to import WSDL - Stack Overflow
Thanks and Regards,
Geevarghese
06-11-2014 03:03 PM
Hi Sirish,
Which version of the schema are you using?
This command works for me:
$ wsimport -keep -b schema/current/AXLSOAP.xsd -Xnocompile -s src -d bin -verbose schema/current/AXLAPI.wsdl
We have documentation to create classes that are generated by the wsimport command here - https://developer.cisco.com/site/collaboration/management/axl/learn/how-to/axl-java-sample-application.gsp
However, it looks like the code snippets aren't displaying correctly. We will work on updating this.
thanks,
Adrienne
06-12-2014 10:03 AM
Hi Adrienne,
I'm using the wsimport that shipped with jdk1.6.0_43. I will be trying with the latest jdk version and will let you know the outcome.
Thanks,
Sirish.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide