CUCM AXL API XML Parser Java Exception

Unanswered Question

I am on CUCM 6.1, and I have generated the AXL Api classes using WSDL2Java. I am able to call come methods successfully, however when i call the AXLAPIBindingStub Method "getPhone", and supply it with a hard coded Phone name, it Throws an exception.

"nested exception is: org.xml.sax.SAXException: Invalid element in - asciiLabel "

I really have no idea where to go from here...

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
msabir Thu, 08/06/2009 - 18:16
User Badges:
  • Bronze, 100 points or more

We are using Java and Eclipse based Web Services to get the phone list in our PhoneTop products and they seem to work fine....

I have realized that the system has two versions of axis. axis 1.4 (which I installed) and axis 1.2 (installed by the package manager) I removed axis 1.4 as I tend to trust the package manager ( I think its actually axis2 1.2) and I am trying to regenerate classes from scratch. the axis installed by the package manager does not have wsdl2java, so I am trying to download axis2 1.2 and install just the wsdl2java tool.

I recompiled all the classes using axis 1.2 and I am back to the original exception:

nested exception is: org.xml.sax.SAXException: Invalid element in - asciiLabel org.xml.sax.SAXException: Invalid element in - asciiLabel

Isn't sax an xml parser? and doesn't axis recommend using xerces ?

How can i force it to use Xerces instead of sax?

according to this forum:

This problem is caused by using an out of date wsdl, the response from the server does not match what the wsdl is expecting, and it throws an exception. The easiest way to resolve it is to obtain the latest wsdl...

I obtained my wsdl file from the server itself by downloading the axlsqltoolkit from the server directly, and using the wsdl provided. but apparently when they updated the server they did not update the wsdl with it...

does anyone know where i can get an updated wsdl file? for cucm 6.1(2)?


This Discussion