Author Message
ChengZuo
Joined: Jun 16, 2008
Messages: 0
Offline
It can be seen that there is no REMOVE operation in AES smsxml_test.php. Then how to remove a Vector by SMS.

The following XML scripe appears not working.

<modelFields>
<Vector>*</Vector>
</modelFields>
<operation>remove</operation>
<objectname></objectname>
<qualifier>1</qualifier>
JohnBiggs
Joined: Jun 20, 2005
Messages: 1141
Location: Rural, Virginia
Offline
Just like with the SAT, all vectors always exist.. you can change them, and list them, but add and remove are not available actions on them. To remove a vector you can either wipe out all of its steps, or remove any references to it from Vector Directory Numbers (VDNs).
ChengZuo
Joined: Jun 16, 2008
Messages: 0
Offline
How to wipe the steps, John? Could you give a sample?

Thanks
Cheng
JohnBiggs
Joined: Jun 20, 2005
Messages: 1141
Location: Rural, Virginia
Offline
for the xml or non-xml version of SMS? You should be developing to the XML version if at all possible.


use the https://<ip-of-AES>/smsxml/smsxml_test.php tool, do a 'display' of the vector,

Now use the model fields section
set model to Vector
Field to "VectorStep"
Value to a single space
Position to 1
Click ADD Field

Repeat for each step position you need to blank out.

Change the operation to 'change'
make sure the Qualifier is set to the vector you want to manipulate,

Or copy and paste this XML into the window that shows the ModelFields - Generated XML and then click the Update XML button (here I am manipulating just the first step in the vector)

<?xml version="1.0"?>
<modelFields>
<Vector>
<VectorStep position="1"> </VectorStep>
</Vector>
</modelFields>
ChengZuo
Joined: Jun 16, 2008
Messages: 0
Offline
By inputing the XML below

<?xml version="1.0"?>
<modelFields>
<Vector>
<VectorStep position="1"/>
</Vector>
</modelFields>

the response shows following. But the step #1 is not changed. However, if I made some change to VectorName it worked.

Response {
var $result_code = 0
var $result_data =
'<?xml version="1.0"?>
<result_data/>
'
var $message_text = ''
}
JohnBiggs
Joined: Jun 20, 2005
Messages: 1141
Location: Rural, Virginia
Offline
The XML you posted and the XML I posted are different, and that difference is important.
Go to:   
Mobile view