on 01-24-2014 01:47 PM
I'm using call manager 6 , and I noticed there is a method to list all the devices on the call manager and there are no methods to list the lines on the call manager.If anybody has some ideas, please let me know, thanks in advance.
The XSD type of the response to any <ExecuteSQLQuery> is of XSD type 'any' - i.e. an undefined block of XML. The actual XML returned is of course dependent on the specifics of the SQL query you submit, and Axis is unable to handle the result itself:
No deserializer for {http://www.w3.org/2001/XMLSchema}anyType
For these types of queries, you will need to either build your own SAX deserializer for the query and incorporate it into the Axis source code (hard), or use a more 'manual' approach to the XML, such as using XML DOM (Xerxes) or simple string parsing - much easier.
The AXL SQL Toolkit (downloadable from the UCM admin web UI, under Applications/Tools) contains some java source code that demonstrates using javax SOAP tools and Xerxes DOM.
The main consideration is that you cannot use the Axis generated code to access the <return> element - Axis cannot handle the 'xsd:any' data type that is defined for this element. You will need to abandon Axis for <executeSQLQuery> requests, and use 'lower level' mechanisms, such as the javax SOAP and DOM libraries or simple text parsing.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: