cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
775
Views
0
Helpful
2
Replies

Start And Stop Services Using SOAP

tohsheenbazaz
Level 1
Level 1

Hi Guys

I have CUCM version 10.5.2.11900-3

I am using the control center web service, and intend to stop / start or restart service through a cron job.

As of now, I am just testing this API using the SOAPUI, and am have a little trouble.

I am able to get the list of services perfectly fine using the getStaticServiceListExtended

But when I try to stop a running CTI Manager service using the soapControlServicesEx , the server returns a fault. Not sure why. Has anyone faced this.

Have not looked any logs as of now.

Request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.cisco.com/ast/soap">

   <soapenv:Header/>

   <soapenv:Body>

      <soap:soapDoControlServicesEx>

         <soap:ControlServiceRequestEx>

            <soap:ProductId>CallManager</soap:ProductId>

            <soap:DependencyType>none</soap:DependencyType>

            <soap:ControlType>stop</soap:ControlType>

            <soap:ServiceList>

               <!--Zero or more repetitions:-->

               <soap:item>Cisco CTIManager</soap:item>

            </soap:ServiceList>

         </soap:ControlServiceRequestEx>

      </soap:soapDoControlServicesEx>

   </soapenv:Body>

</soapenv:Envelope>

Response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

   <soapenv:Body>

      <soapenv:Fault>

         <faultcode>soapenv:Server</faultcode>

         <faultstring>unknown</faultstring>

         <detail/>

      </soapenv:Fault>

   </soapenv:Body>

</soapenv:Envelope>

If there is anything you can point out, I would appreciate that.

=BR

Tohsheen





2 Replies 2

tohsheenbazaz
Level 1
Level 1

Any pointers on this ?

I was able to reproduce this problem until I changed the <ControlType> value to 'Stop' (vs. 'stop').  The correct values are present in the WSDL, but the online documentation could be more clear here.