cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1198
Views
0
Helpful
1
Replies

doDeviceReset AXL API Gives me an error

Osama Mahmoud
Level 1
Level 1

Hello ,

     I was trying to reset a device using AXL API doDeviceReset but it gave me an error , Do any one have an example of the SOAP message sent for this command so I can replicate it .

My command resulted in the following error :-

HTTP/1.1 500 Internal Server Error
Set-Cookie: JSESSIONIDSSO=1158795CFB59BDF4E7DD84B692B74EAA; Path=/; Secure
Set-Cookie: JSESSIONID=374DF26866DE8407994809041A41372D; Path=/axl; Secure
Content-Type: text/xml;charset=UTF-8
Content-Length: 373
Date: Sun, 31 Aug 2014 16:47:13 GMT
Connection: close
Server:

<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode><faultstring></faultstring><detail><axlError><axlcode>-1</axlcode><axlmessage></axlmessage><request>doDeviceReset</request></axlError></detai...>

This is the SOAP message that I have sent

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/8.5"><soapenv:Header/><soapenv:Body><ns:doDeviceReset sequence="1234"><doDeviceReset><deviceName>SEP331099</deviceName><isHardReset>true</isHardReset></doDeviceReset></ns:doDeviceReset></soapenv:Body> </soapenv:Envelope>

Best Regards ,

1 Reply 1

TDoan
Level 1
Level 1

Hi

There is something wrong in your SOAP message. You must use <deviceName uuid = "Value"/>, it is not device of phone

Please try this. This is only the SOAP message, you need to set Authorization (User, Password), SOAPAction.

<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:doDeviceReset sequence="1">

  <deviceName uuid="' + APhoneUuid + '"/>

  <isHardReset>false</isHardReset>

  </ns:doDeviceReset>

</soapenv:Body>

</soapenv:Envelope>

It worked for me. APhoneUuid is uuid of device (ex: {008F29C4-7CC8-2D7E-245B-394E3D16106A})

Regards,