cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
152
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: Lizabeth Li on 29-09-2010 11:42:00 PM
Hi,
 
I'm new to SOAP and CUCM.  I'm having an issue using the list requests for CUCM 8.0.x.
For instance, I am trying to use listDateTimeGroup:
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/8.0">
 <soapenv:Header/>
 <soapenv:Body>
  <ns:listDateTimeGroup sequence="1">
   <searchCriteria>
    <name>*</name>
   </searchCriteria>
   <returnedTags/>
  </ns:listDateTimeGroup>
 </soapenv:Body>
</soapenv:Envelope>
 
This is what I get in response:
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="[url=http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>No]http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>No method found for processing request</faultstring><detail><axl:Error xmlns:axl="[url=http://www.cisco.com/AXL/API/1.0"><axl:code>5003</axl:code><axl:message>No]http://www.cisco.com/AXL/API/1.0"><axl:code>5003</axl:code><axl:message>No method found for processing request</axl:message><request>listDateTimeGroup</request></axl:Error></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
 
What am I doing wrong?
 
Thanks.

Subject: RE: Issue using list Requests
Replied by: Florian Kroessbacher on 01-10-2010 06:24:09 PM
I thinkyou should use % as the wildcard instead of * to search everything
 
cheers

Subject: RE: Issue using list Requests
Replied by: David Staudt on 04-10-2010 07:49:41 PM
Use '%' here.  The following works on my system:
 
POST https://10.88.131.139:8443/axl/ HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "CUCMB ver=8.0 listDateTimeGroup"
User-Agent: Jakarta Commons-HttpClient/3.1
Content-Length: 375
Authorization: Basic QWRtaW5pc3RyYXRvcjpjaXNjbyExMjM=
Host: 10.88.131.139:8443
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/8.0">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:listDateTimeGroup sequence="1">
         <searchCriteria>
            <name>%</name>
         </searchCriteria>
         <returnedTags/>
      </ns:listDateTimeGroup>
   </soapenv:Body>
</soapenv:Envelope>

 
Note 'listDateTimeGroup' is a request new to UCM 8.0(1)...I suspect you are executing this against a previous version.  If so, you will need to use <executeSqlQuery> with SQL something like:
 
select pkid,name from datetimesetting
 
 

Subject: RE: Issue using list Requests
Replied by: Lizabeth Li on 19-10-2010 10:29:41 PM
I had forgotten to include the SOAPAction header.  Thanks!
 

Use '%' here.  The following works on my system:
 
POST https://10.88.131.139:8443/axl/ HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "CUCMB ver=8.0 listDateTimeGroup"
User-Agent: Jakarta Commons-HttpClient/3.1
Content-Length: 375
Authorization: Basic QWRtaW5pc3RyYXRvcjpjaXNjbyExMjM=
Host: 10.88.131.139:8443
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/8.0">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:listDateTimeGroup sequence="1">
         <searchCriteria>
            <name>%</name>
         </searchCriteria>
         <returnedTags/>
      </ns:listDateTimeGroup>
   </soapenv:Body>
</soapenv:Envelope>

 
Note 'listDateTimeGroup' is a request new to UCM 8.0(1)...I suspect you are executing this against a previous version.  If so, you will need to use <executeSqlQuery> with SQL something like:
 
select pkid,name from datetimesetting
 
 
Getting Started

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:

Quick Links