cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2035
Views
0
Helpful
3
Replies

[ERROR] Schema descriptor {http://.....}addSipProfile in message part "axlParams"

sinukala
Level 1
Level 1

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.

3 Replies 3

Geevarghese Cheria
Cisco Employee
Cisco Employee

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

amoherek
Cisco Employee
Cisco Employee

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

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.