06-18-2012 06:34 AM - edited 03-19-2019 05:07 AM
Hi!
We are trying to connect to CUCM 7 with AXL to retrieve data about users. Issue the query:
java -cp classes;.\lib\saaj-api.jar;.\lib\saaj-impl.jar;.\lib\mail.jar;.\lib\activation.jar;.\lib\jaxm-api.jar;.\lib\jaxm-runtime.jar;.\lib\xercesImpl.jar;.\lib\xml-apis.jar AxlSqlToolkit -username=xxxxx -password=xxxxx -host=10.11.200.10 -input=sample.xml -output=response.xml
We get the following response:
select * from callmanager
****************************************************************************
*
Sending message...
---------------------
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><executeSQLQuery sequence="1340019422168"><sql>select * from callmanager</sql></executeSQLQuery></SOAP-ENV:Body></SOAP-ENV:Envelope>
---------------------
2012-06-18 13:37:02
com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConne
ction post
SEVERE: SAAJ0008: Bad Response; Not Found
com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl:
com.sun.xml.internal.mess
aging.saaj.SOAPExceptionImpl: Bad response: (404Not Found
at
com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.cal
l(Unknown Source)
at AxlSqlToolkit.sendMessage(AxlSqlToolkit.java:138)
at AxlSqlToolkit.execute(AxlSqlToolkit.java:199)
at AxlSqlToolkit.main(AxlSqlToolkit.java:244)
Caused by: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Bad
response:
(404Not Found
at
com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.pos
t(Unknown Source)
... 4 more
What can cause errors in the answers?
Greetings,
Kamil
06-18-2012 07:24 AM
Hi
Have you enabled the AXL service (through serviceability/service activation) on the 10.11.200.10 server?
Aaron
06-18-2012 11:30 PM
Yes, AXL works.
Kamil
06-19-2012 12:41 AM
Hi
Well - a 404 means 'page not found' typically, so either the AXL service has not been enabled on that server, is not working for some reason, or the user you specified doesn't have AXL rights.
I would check your user rights, and if they're OK try a different CUCM server (enabling AXL if necessary).
Aaron
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: