need help of a cisco professional ( SOAP / AXL / CCM)

Jörg Wiesmann <[email protected]> Mon, 24 Jul 2006 02:18:51 -0600
Newsgroups gmane.comp.java.sun.jtapi
Message-ID <LISTSERV%[email protected]>
Hi,

i got a general question about SOAP and AXL and maybe found some bugs using
this technology with JAVA and CCM 4.0.3.

My Problem is that i want to call listCSSByName and get a wrong result back.
I using SUN xjc.bat (webservice / JAXB) to compile the *.xsd files, given by
CISCO.
First you got to change them, to get them compiled like this:
*********************************************************************

C:\serverAXL>c:\Sun\jwsdp-2.0\jaxb\bin\xjc.bat c:\serverAXL2\axlsoap.xsd
parsing a schema...
[ERROR] s4s-elt-invalid-content.1: The content of 'UpdateVoiceMailPilotReq' is i
misplaced, or occurs too often.
  line 3799 of file:/C:/serverAXL2/axlsoap.xsd

[ERROR] e-props-correct.2: Invalid value constraint value 'false' in element 'uu
  line 522 of file:/C:/serverAXL2/axlsoap.xsd

[ERROR] e-props-correct.2: Invalid value constraint value 'false' in element 'is
  line 3935 of file:/C:/serverAXL2/axlsoap.xsd

[ERROR] InvalidRegex: Pattern value '((0x[0-9a-fA-F]+)|([-\d]\d*))*' is not a va
or was: ''-' is an invalid character range. Write '\-'.'.
  line 3172 of file:/C:/serverAXL2/axl.xsd

[ERROR] InvalidRegex: Pattern value '((0x[0-9a-fA-F]+)|([-\d]\d*))*' is not a va
or was: ''-' is an invalid character range. Write '\-'.'.
  line 3182 of file:/C:/serverAXL2/axl.xsd

[ERROR] InvalidRegex: Pattern value '((0x[0-9a-fA-F]+)|([-\d]\d*))*' is not a va
or was: ''-' is an invalid character range. Write '\-'.'.
  line 3192 of file:/C:/serverAXL2/axl.xsd

[ERROR] cos-nonambig: "":tunneledProtocol and "":tunneledProtocol (or elements f
nique Particle Attribution". During validation against this schema, ambiguity wo
  line 6701 of file:/C:/serverAXL2/axlsoap.xsd

[ERROR] cos-nonambig: "":tunneledProtocol and "":tunneledProtocol (or elements f
nique Particle Attribution". During validation against this schema, ambiguity wo
  line 780 of file:/C:/serverAXL2/axl.xsd

Failed to parse a schema.
*********************************************************************

If you fixed these errors, you get all the classes you need to operate with
SOAP and JAXB.
BUT: If you want to unmarshal the result of "listCSSByName" you receive this
exception:
javax.xml.bind.UnmarshalException: unexpected element
(uri:"http://www.cisco.com/AXL/1.0", local:"listCSSByNameResponse").
Expected elements are [...]
<{http://www.cisco.com/AXL/API/1.0}listCSSByNameResponse>

You see, that .../AXL/API/1.0 ( look at API ) is required and the result
comes back like this:
axl:listCSSByNameResponse
xsi:schemaLocation="http://www.cisco.com/AXL/API/1.0 [...]"
xmlns:axl="http://www.cisco.com/AXL/1.0"

There is no /AXL/API it is just /AXL/1.0

which means for me, that this have to be an error of the server response.
Is there any help or info available?
May there is a bugfix, or is it my fault?
Please Cisco, help me :)

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff JTAPI-INTEREST".  For general help, send email to
[email protected] and include in the body of the message "help".