cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Undeletable flag in sms notification device.

60
Views
0
Helpful
0
Comments
This document was generated from CDN thread

Created by: Chris Visagie on 22-06-2010 08:37:01 PM
Hi,
 
I am developing against Version 8.0.2.10000-12 REST interface.
 
I can create and modify an SMS notification device, but I cannot delete it.  It seems I cannot control the Undeletable flag.  The flag is set to false in the body of the request when creating the device:
 <Undeletable>0</Undeletable>
On query of the device the flag is indicated to be true:
<Undeletable>true</Undeletable>
 
Trying to modify the device gives the same results.  On trying to delete this device,  I receive the following response:
status_code[400], status_message[Bad Request], response[<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ErrorDetails><errors><code>DATA_EXCEPTION</code><message>Object is undeletable.  Object = , Table = [tbl_NotificationDevice]</message></errors></ErrorDetails>]
 
On the same system I can create an SMS notification device through the GUI and a query through the REST interface provides
<Undeletable>false</Undeletable>
and I can also delete this device through the GUI.
 
Does the Undeletable flag depend on any other settings?  It does not seem to be dependent on whether this device is active or not.  I get the same error in both states.  Any other suggestions will be appreciated.
  
Thanks.

Subject: RE: Undeletable flag in sms notification device.
Replied by: David Wanagel on 23-06-2010 02:41:58 PM
It looks like you need to send undeletable as a string representation of a boolean:
 
<Undeletable>false</Undeletable>
 
I use the JAXB object factory to create the objects in my test code and that is how it comes out. Using that on an 8.5 system this seems to work fine, so please let me know if that helps on your 8.0.2 server.  The HTTP of a test POST, GET, DELETE is included below.  In the example HTTP undeletable is not set explicitly and it defaults to false.  I also sent the device with undeletable explicitly set and that worked as well:
 
{"SmppProviderObjectId":"236e9b43-74e3-43af-80e9-7c5bbc8e23d0","DisplayName":"my sms device","Undeletable":"false","RecipientAddress":"foo"}
 
Or as XML
 
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><SmsDevice><SmppProviderObjectId>236e9b43-74e3-43af-80e9-7c5bbc8e23d0</SmppProviderObjectId><DisplayName>my sms device</DisplayName><Undeletable>false</Undeletable><RecipientAddress>foo</RecipientAddress></SmsDevice>
 
-Dave
 
Example HTTP:
 
 
POST /vmrest/users/efdd5fb7-0924-4384-9423-2cbfd167532c/notificationdevices/smsdevices HTTP/1.1

Content-Type: application/json

User-Agent: Java/1.6.0_20

Host: cuc-install-69.cisco.com

Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2

Connection: keep-alive

Authorization: Basic Y2NtYWRtaW5pc3RyYXRvcjplY3NidWxhYg==

Content-Length: 118



{"SmppProviderObjectId":"236e9b43-74e3-43af-80e9-7c5bbc8e23d0","DisplayName":"my sms device","RecipientAddress":"foo"}



HTTP/1.1 201 Created

Set-Cookie: JSESSIONIDSSO=E761B6E6A694853F3434A1FA26EF41FB; Path=/

Set-Cookie: JSESSIONID=F14984FA20C5A0C94CB66FF1ABF7F733; Path=/vmrest

Location: http://cuc-install-69.cisco.com/vmrest/users/efdd5fb7-0924-4384-9423-2cbfd167532c/notificationdevices/smsdevices/vmrest/users/efdd5fb7-0924-4384-9423-2cbfd167532c/notificationdevices/smsdevices/07cc60a5-de2c-48dc-b40a-665651688b40

Content-Type: application/xml

Transfer-Encoding: chunked

Date: Wed, 23 Jun 2010 14:28:15 GMT

Server:  



/vmrest/users/efdd5fb7-0924-4384-9423-2cbfd167532c/notificationdevices/smsdevices/07cc60a5-de2c-48dc-b40a-665651688b40



GET /vmrest/users/efdd5fb7-0924-4384-9423-2cbfd167532c/notificationdevices/smsdevices/07cc60a5-de2c-48dc-b40a-665651688b40 HTTP/1.1

Accept: application/json

User-Agent: Java/1.6.0_20

Host: cuc-install-69.cisco.com

Connection: keep-alive

Authorization: Basic Y2NtYWRtaW5pc3RyYXRvcjplY3NidWxhYg==



HTTP/1.1 200 OK

Pragma: No-cache

Cache-Control: no-cache

Expires: Wed, 31 Dec 1969 16:00:00 PST

Set-Cookie: JSESSIONIDSSO=3DFADAD0FB745061B579B83C20DCD809; Path=/

Set-Cookie: JSESSIONID=7C00EEDD5D1BA009C93ABC421EC02D6B; Path=/vmrest

Content-Type: application/json

Transfer-Encoding: chunked

Date: Wed, 23 Jun 2010 14:28:16 GMT

Server:  



{"URI":"/vmrest/users/efdd5fb7-0924-4384-9423-2cbfd167532c/notificationdevices/smsdevices/07cc60a5-de2c-48dc-b40a-665651688b40","SendCount":"true","SmppProviderObjectId":"236e9b43-74e3-43af-80e9-7c5bbc8e23d0","ObjectId":"07cc60a5-de2c-48dc-b40a-665651688b40","Active":"true","DeviceName":"Other","DisplayName":"my sms device","MaxBody":"512","MaxSubject":"64","SubscriberObjectId":"efdd5fb7-0924-4384-9423-2cbfd167532c","UserURI":"/vmrest/users/efdd5fb7-0924-4384-9423-2cbfd167532c","SendCallerId":"true","Undeletable":"false","RecipientAddress":"foo","EventList":"NewVoiceMail"}



DELETE /vmrest/users/efdd5fb7-0924-4384-9423-2cbfd167532c/notificationdevices/smsdevices/07cc60a5-de2c-48dc-b40a-665651688b40 HTTP/1.1

Accept: application/json

User-Agent: Java/1.6.0_20

Host: cuc-install-69.cisco.com

Connection: keep-alive

Authorization: Basic Y2NtYWRtaW5pc3RyYXRvcjplY3NidWxhYg==



HTTP/1.1 204 No Content

Pragma: No-cache

Cache-Control: no-cache

Expires: Wed, 31 Dec 1969 16:00:00 PST

Set-Cookie: JSESSIONIDSSO=E0DF437884A056046CEDDD5480AB55EC; Path=/

Set-Cookie: JSESSIONID=59831306680B47B6BFFE7C00C5A4C253; Path=/vmrest

Date: Wed, 23 Jun 2010 14:28:16 GMT

Server:  




<!--EndFragment-->

Subject: RE: Undeletable flag in sms notification device.
Replied by: Chris Visagie on 28-06-2010 12:11:40 PM
Thanks for the reply David.
 
        <SmsDevice>
            <StaticText>You have a voicemail message.</StaticText>
            <SmppProviderObjectId>61180a89-5e49-4deb-9cd2-0c306d8983b0</SmppProviderObjectId>
            <Active>1</Active>
            <DeviceName>SMS</DeviceName>
            <DisplayName>SMS</DisplayName>
            <Undeletable>false</Undeletable>
            <RecipientAddress>12345678</RecipientAddress>
        </SmsDevice>
I have tried what you suggested, but the simptoms are still the same.  Might be an issue with the software version.  At least it reacts differently on a later version.
    <SmsDevice>
        <URI>/vmrest/users/f4a16b6e-94db-4f5e-b739-2d983c951792/notificationdevices/smsdevices/d1c83bf9-4aef-40ee-8feb-f1e9aea957e8</URI>
        <SendCount>true</SendCount>
        <StaticText>You have a voicemail message.</StaticText>
        <SmppProviderObjectId>61180a89-5e49-4deb-9cd2-0c306d8983b0</SmppProviderObjectId>
        <ObjectId>d1c83bf9-4aef-40ee-8feb-f1e9aea957e8</ObjectId>
        <Active>true</Active>
        <DeviceName>SMS</DeviceName>
        <DisplayName>SMS</DisplayName>
        <MaxBody>512</MaxBody>
        <MaxSubject>64</MaxSubject>
        <SubscriberObjectId>f4a16b6e-94db-4f5e-b739-2d983c951792</SubscriberObjectId>
        <UserURI>/vmrest/users/f4a16b6e-94db-4f5e-b739-2d983c951792</UserURI>
        <SendCallerId>true</SendCallerId>
        <Undeletable>true</Undeletable>
        <RecipientAddress>12345678</RecipientAddress>
        <EventList>NewVoiceMail</EventList>
    </SmsDevice>
I see the GUI reports version 8.0.2.10000-12, but the REST interface actually reports 8.0.1.12.
 
We are investigating using a later version which is still an option.

Subject: RE: Undeletable flag in sms notification device.
Replied by: David Wanagel on 29-06-2010 01:18:47 PM
Something is funny, I installed 8.0.2ES14 (8.0.2ES14.41005-14) and it works OK the same as 8.5, which is what I would have expected, can you capture the actual HTTP?
 
-Dave

Subject: RE: Undeletable flag in sms notification device.
Replied by: Chris Visagie on 30-06-2010 05:25:19 PM
[Updated to show and attempted modify of the Undeletable flag]
Below, a debug log that I could not attach as a file.  Any feedback will be appreciated.  It includes a process of creating a user, adding, modifying and deleting (error) an SMS notification device and then deleting the user.

 
REQUEST: method
RESQUEST: uri[https://10.120.1.86:8443/vmrest/version]
RESQUEST: data
RESPONSE: status_code[200], status_message, response[<?xml version="1.0" encoding="UTF-8" standalone="yes"?><VersionInformation><name>vmrest</name><version>8.0.1.12</version></VersionInformation>]
REQUEST: method
RESQUEST: uri[https://10.120.1.86:8443/vmrest/users?templateAlias=voicemailusertemplate]
RESQUEST: data[<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <User>
            <FirstName>Unit</FirstName>
            <LastName>Test1</LastName>
            <Alias>7001001</Alias>
            <IsVmEnrolled>1</IsVmEnrolled>
            <DtmfAccessId>7001001</DtmfAccessId>
            <SmtpAddress>unit.test1</SmtpAddress>
        </User>
]
RESPONSE: status_code[201], status_message, response[/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69]
REQUEST: method
RESQUEST: uri[https://10.120.1.86:8443/vmrest/users?query=(alias%20is%207001001)]
RESQUEST: data
RESPONSE: status_code[200], status_message, response[<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Users><User><URI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69</URI><ObjectId>75dca451-1d3d-49d0-a009-a17e919c0f69</ObjectId><FirstName>Unit</FirstName><LastName>Test1</LastName><Alias>7001001</Alias><DisplayName>Unit Test1</DisplayName><TimeZone>0</TimeZone><CreationTime>2010-06-30T18:27:46Z</CreationTime><CosObjectId>82c2eae3-31f4-450c-be19-a2f96d5c05af</CosObjectId><CosURI>/vmrest/coses/82c2eae3-31f4-450c-be19-a2f96d5c05af</CosURI><Language>0</Language><LocationObjectId>7e0f9e13-d795-4ba0-b061-6b3a730a5036</LocationObjectId><LocationURI>/vmrest/locations/connectionlocations/7e0f9e13-d795-4ba0-b061-6b3a730a5036</LocationURI><ListInDirectory>true</ListInDirectory><IsVmEnrolled>true</IsVmEnrolled><MediaSwitchObjectId>7ed153e6-b979-454f-9b42-dda7a69648ba</MediaSwitchObjectId><PhoneSystemURI>/vmrest/phonesystems/7ed153e6-b979-454f-9b42-dda7a69648ba</PhoneSystemURI><CallHandlerObjectId>4ea298f6-5b67-4d36-966c-71c5991ffb46</CallHandlerObjectId><CallhandlerURI>/vmrest/handlers/callhandlers/4ea298f6-5b67-4d36-966c-71c5991ffb46</CallhandlerURI><DtmfAccessId>7001001</DtmfAccessId><VoiceNameRequired>false</VoiceNameRequired><PartitionObjectId>4f3bd6ef-a515-4023-bcc1-e68cb2c01693</PartitionObjectId><PartitionURI>/vmrest/partitions/4f3bd6ef-a515-4023-bcc1-e68cb2c01693</PartitionURI><MwisURI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/mwis</MwisURI><NotificationDevicesURI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/notificationdevices</NotificationDevicesURI><MessageHandlersURI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/messagehandlers</MessageHandlersURI><ExternalServiceAccountsURI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/externalserviceaccounts</ExternalServiceAccountsURI><AlternateExtensionsURI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/alternateextensions</AlternateExtensionsURI></User></Users>]
REQUEST: method
RESQUEST: uri[https://10.120.1.86:8443/vmrest/smppproviders]
RESQUEST: data
RESPONSE: status_code[200], status_message, response[<?xml version="1.0" encoding="UTF-8" standalone="yes"?><SmppProviders><SmppProvider><URI>/vmrest/smppproviders/61180a89-5e49-4deb-9cd2-0c306d8983b0</URI><ObjectId>61180a89-5e49-4deb-9cd2-0c306d8983b0</ObjectId><IsEnabled>true</IsEnabled><TextName>SMPPSMSProvider</TextName></SmppProvider></SmppProviders>]
REQUEST: method
RESQUEST: uri[https://10.120.1.86:8443/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/notificationdevices/smsdevices]
RESQUEST: data[<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <SmsDevice>
            <StaticText>You have a voicemail message.</StaticText>
            <SmppProviderObjectId>61180a89-5e49-4deb-9cd2-0c306d8983b0</SmppProviderObjectId>
            <Active>1</Active>
            <DeviceName>SMS</DeviceName>
            <DisplayName>SMS</DisplayName>
            <RecipientAddress>12345678</RecipientAddress>
        </SmsDevice>
]
RESPONSE: status_code[201], status_message, response[/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/notificationdevices/smsdevices/df4e9ec3-f7c6-4dca-a9ac-4899dad9d3db]
REQUEST: method
RESQUEST: uri[https://10.120.1.86:8443/vmrest/users?query=(alias%20is%207001001)]
RESQUEST: data
RESPONSE: status_code[200], status_message, response[<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Users><User><URI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69</URI><ObjectId>75dca451-1d3d-49d0-a009-a17e919c0f69</ObjectId><FirstName>Unit</FirstName><LastName>Test1</LastName><Alias>7001001</Alias><DisplayName>Unit Test1</DisplayName><TimeZone>0</TimeZone><CreationTime>2010-06-30T18:27:46Z</CreationTime><CosObjectId>82c2eae3-31f4-450c-be19-a2f96d5c05af</CosObjectId><CosURI>/vmrest/coses/82c2eae3-31f4-450c-be19-a2f96d5c05af</CosURI><Language>0</Language><LocationObjectId>7e0f9e13-d795-4ba0-b061-6b3a730a5036</LocationObjectId><LocationURI>/vmrest/locations/connectionlocations/7e0f9e13-d795-4ba0-b061-6b3a730a5036</LocationURI><ListInDirectory>true</ListInDirectory><IsVmEnrolled>true</IsVmEnrolled><MediaSwitchObjectId>7ed153e6-b979-454f-9b42-dda7a69648ba</MediaSwitchObjectId><PhoneSystemURI>/vmrest/phonesystems/7ed153e6-b979-454f-9b42-dda7a69648ba</PhoneSystemURI><CallHandlerObjectId>4ea298f6-5b67-4d36-966c-71c5991ffb46</CallHandlerObjectId><CallhandlerURI>/vmrest/handlers/callhandlers/4ea298f6-5b67-4d36-966c-71c5991ffb46</CallhandlerURI><DtmfAccessId>7001001</DtmfAccessId><VoiceNameRequired>false</VoiceNameRequired><PartitionObjectId>4f3bd6ef-a515-4023-bcc1-e68cb2c01693</PartitionObjectId><PartitionURI>/vmrest/partitions/4f3bd6ef-a515-4023-bcc1-e68cb2c01693</PartitionURI><MwisURI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/mwis</MwisURI><NotificationDevicesURI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/notificationdevices</NotificationDevicesURI><MessageHandlersURI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/messagehandlers</MessageHandlersURI><ExternalServiceAccountsURI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/externalserviceaccounts</ExternalServiceAccountsURI><AlternateExtensionsURI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/alternateextensions</AlternateExtensionsURI></User></Users>]
REQUEST: method
RESQUEST: uri[https://10.120.1.86:8443/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/notificationdevices/smsdevices]
RESQUEST: data
RESPONSE: status_code[200], status_message, response[<?xml version="1.0" encoding="UTF-8" standalone="yes"?><SmsDevices><SmsDevice><URI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/notificationdevices/smsdevices/df4e9ec3-f7c6-4dca-a9ac-4899dad9d3db</URI><SendCount>true</SendCount><StaticText>You have a voicemail message.</StaticText><SmppProviderObjectId>61180a89-5e49-4deb-9cd2-0c306d8983b0</SmppProviderObjectId><ObjectId>df4e9ec3-f7c6-4dca-a9ac-4899dad9d3db</ObjectId><Active>true</Active><DeviceName>SMS</DeviceName><DisplayName>SMS</DisplayName><MaxBody>512</MaxBody><MaxSubject>64</MaxSubject><SubscriberObjectId>75dca451-1d3d-49d0-a009-a17e919c0f69</SubscriberObjectId><UserURI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69</UserURI><SendCallerId>true</SendCallerId><Undeletable>true</Undeletable><RecipientAddress>12345678</RecipientAddress><EventList>NewVoiceMail</EventList></SmsDevice></SmsDevices>]
REQUEST: method
RESQUEST: uri[https://10.120.1.86:8443/vmrest/smppproviders]
RESQUEST: data
RESPONSE: status_code[200], status_message, response[<?xml version="1.0" encoding="UTF-8" standalone="yes"?><SmppProviders><SmppProvider><URI>/vmrest/smppproviders/61180a89-5e49-4deb-9cd2-0c306d8983b0</URI><ObjectId>61180a89-5e49-4deb-9cd2-0c306d8983b0</ObjectId><IsEnabled>true</IsEnabled><TextName>SMPPSMSProvider</TextName></SmppProvider></SmppProviders>]
REQUEST: method
RESQUEST: uri[https://10.120.1.86:8443/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/notificationdevices/smsdevices/df4e9ec3-f7c6-4dca-a9ac-4899dad9d3db]
RESQUEST: data[<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <SmsDevice>
            <StaticText>You have a voicemail message.</StaticText>
            <SmppProviderObjectId>61180a89-5e49-4deb-9cd2-0c306d8983b0</SmppProviderObjectId>
            <Active>0</Active>
            <DeviceName>SMS</DeviceName>
            <DisplayName>SMS</DisplayName>
            <Undeletable>false</Undeletable>
            <RecipientAddress>87654321</RecipientAddress>
        </SmsDevice>
]
RESPONSE: status_code[204], status_message[No Content], response[]
REQUEST: method
RESQUEST: uri[https://10.120.1.86:8443/vmrest/users?query=(alias%20is%207001001)]
RESQUEST: data
RESPONSE: status_code[200], status_message, response[<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Users><User><URI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69</URI><ObjectId>75dca451-1d3d-49d0-a009-a17e919c0f69</ObjectId><FirstName>Unit</FirstName><LastName>Test1</LastName><Alias>7001001</Alias><DisplayName>Unit Test1</DisplayName><TimeZone>0</TimeZone><CreationTime>2010-06-30T18:27:46Z</CreationTime><CosObjectId>82c2eae3-31f4-450c-be19-a2f96d5c05af</CosObjectId><CosURI>/vmrest/coses/82c2eae3-31f4-450c-be19-a2f96d5c05af</CosURI><Language>0</Language><LocationObjectId>7e0f9e13-d795-4ba0-b061-6b3a730a5036</LocationObjectId><LocationURI>/vmrest/locations/connectionlocations/7e0f9e13-d795-4ba0-b061-6b3a730a5036</LocationURI><ListInDirectory>true</ListInDirectory><IsVmEnrolled>true</IsVmEnrolled><MediaSwitchObjectId>7ed153e6-b979-454f-9b42-dda7a69648ba</MediaSwitchObjectId><PhoneSystemURI>/vmrest/phonesystems/7ed153e6-b979-454f-9b42-dda7a69648ba</PhoneSystemURI><CallHandlerObjectId>4ea298f6-5b67-4d36-966c-71c5991ffb46</CallHandlerObjectId><CallhandlerURI>/vmrest/handlers/callhandlers/4ea298f6-5b67-4d36-966c-71c5991ffb46</CallhandlerURI><DtmfAccessId>7001001</DtmfAccessId><VoiceNameRequired>false</VoiceNameRequired><PartitionObjectId>4f3bd6ef-a515-4023-bcc1-e68cb2c01693</PartitionObjectId><PartitionURI>/vmrest/partitions/4f3bd6ef-a515-4023-bcc1-e68cb2c01693</PartitionURI><MwisURI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/mwis</MwisURI><NotificationDevicesURI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/notificationdevices</NotificationDevicesURI><MessageHandlersURI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/messagehandlers</MessageHandlersURI><ExternalServiceAccountsURI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/externalserviceaccounts</ExternalServiceAccountsURI><AlternateExtensionsURI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/alternateextensions</AlternateExtensionsURI></User></Users>]
REQUEST: method
RESQUEST: uri[https://10.120.1.86:8443/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/notificationdevices/smsdevices]
RESQUEST: data
RESPONSE: status_code[200], status_message, response[<?xml version="1.0" encoding="UTF-8" standalone="yes"?><SmsDevices><SmsDevice><URI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/notificationdevices/smsdevices/df4e9ec3-f7c6-4dca-a9ac-4899dad9d3db</URI><SendCount>true</SendCount><StaticText>You have a voicemail message.</StaticText><SmppProviderObjectId>61180a89-5e49-4deb-9cd2-0c306d8983b0</SmppProviderObjectId><ObjectId>df4e9ec3-f7c6-4dca-a9ac-4899dad9d3db</ObjectId><Active>false</Active><DeviceName>SMS</DeviceName><DisplayName>SMS</DisplayName><MaxBody>512</MaxBody><MaxSubject>64</MaxSubject><SubscriberObjectId>75dca451-1d3d-49d0-a009-a17e919c0f69</SubscriberObjectId><UserURI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69</UserURI><SendCallerId>true</SendCallerId><Undeletable>true</Undeletable><RecipientAddress>87654321</RecipientAddress><EventList>NewVoiceMail</EventList></SmsDevice></SmsDevices>]
REQUEST: method
RESQUEST: uri[https://10.120.1.86:8443/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/notificationdevices/smsdevices/df4e9ec3-f7c6-4dca-a9ac-4899dad9d3db]
RESQUEST: data
RESPONSE: status_code[400], status_message[Bad Request], response[<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ErrorDetails><errors><code>DATA_EXCEPTION</code><message>Object is undeletable.  Object = , Table = [tbl_NotificationDevice]</message></errors></ErrorDetails>]
<?xml version="1.0" ?>
<ErrorDetails>
    <errors>
        <code>DATA_EXCEPTION</code>
        <message>Object is undeletable.  Object = , Table = [tbl_NotificationDevice]</message>
    </errors>
</ErrorDetails>
ERROR:root:Code: 400
Message: Bad Request
Headers: Pragma: No-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 02:00:00 SAST
Set-Cookie: JSESSIONIDSSO=13B87297EB8F261D8659FE6E80B5BB3A; Path=/; Secure
Set-Cookie: JSESSIONID=2D411B8E8DC8FA620B3A78C7E7048E3C; Path=/vmrest; Secure
Content-Type: application/xml
Date: Wed, 30 Jun 2010 18:27:56 GMT
Connection: close
Server:
Response: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><ErrorDetails><errors><code>DATA_EXCEPTION</code><message>Object is undeletable.  Object = , Table = [tbl_NotificationDevice]</message></errors></ErrorDetails>
Message: [DATA_EXCEPTION] Object is undeletable.  Object = , Table = [tbl_NotificationDevice]
FREQUEST: method
RESQUEST: uri[https://10.120.1.86:8443/vmrest/users?query=(alias%20is%207001001)]
RESQUEST: data
RESPONSE: status_code[200], status_message, response[<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Users><User><URI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69</URI><ObjectId>75dca451-1d3d-49d0-a009-a17e919c0f69</ObjectId><FirstName>Unit</FirstName><LastName>Test1</LastName><Alias>7001001</Alias><DisplayName>Unit Test1</DisplayName><TimeZone>0</TimeZone><CreationTime>2010-06-30T18:27:46Z</CreationTime><CosObjectId>82c2eae3-31f4-450c-be19-a2f96d5c05af</CosObjectId><CosURI>/vmrest/coses/82c2eae3-31f4-450c-be19-a2f96d5c05af</CosURI><Language>0</Language><LocationObjectId>7e0f9e13-d795-4ba0-b061-6b3a730a5036</LocationObjectId><LocationURI>/vmrest/locations/connectionlocations/7e0f9e13-d795-4ba0-b061-6b3a730a5036</LocationURI><ListInDirectory>true</ListInDirectory><IsVmEnrolled>true</IsVmEnrolled><MediaSwitchObjectId>7ed153e6-b979-454f-9b42-dda7a69648ba</MediaSwitchObjectId><PhoneSystemURI>/vmrest/phonesystems/7ed153e6-b979-454f-9b42-dda7a69648ba</PhoneSystemURI><CallHandlerObjectId>4ea298f6-5b67-4d36-966c-71c5991ffb46</CallHandlerObjectId><CallhandlerURI>/vmrest/handlers/callhandlers/4ea298f6-5b67-4d36-966c-71c5991ffb46</CallhandlerURI><DtmfAccessId>7001001</DtmfAccessId><VoiceNameRequired>false</VoiceNameRequired><PartitionObjectId>4f3bd6ef-a515-4023-bcc1-e68cb2c01693</PartitionObjectId><PartitionURI>/vmrest/partitions/4f3bd6ef-a515-4023-bcc1-e68cb2c01693</PartitionURI><MwisURI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/mwis</MwisURI><NotificationDevicesURI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/notificationdevices</NotificationDevicesURI><MessageHandlersURI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/messagehandlers</MessageHandlersURI><ExternalServiceAccountsURI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/externalserviceaccounts</ExternalServiceAccountsURI><AlternateExtensionsURI>/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69/alternateextensions</AlternateExtensionsURI></User></Users>]
REQUEST: method
RESQUEST: uri[https://10.120.1.86:8443/vmrest/users/75dca451-1d3d-49d0-a009-a17e919c0f69]
RESQUEST: data
RESPONSE: status_code[204], status_message[No Content], response[]
 
CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards