4 using the delete function on file system data, Using the delete function on file system data -4, Using the delete function on file system data – Echelon i.LON SmartServer 2.0 User Manual

Page 299

Advertising
background image

i.LON SmartServer 2.0 Programmer’s Reference

18-4

ilonWebRef.Item_Coll wrteResp = ilon.Write(itemDataColl);

18.4

Using the Delete Function on File System Data

You can use the Delete function to delete an alarm log, data log, or other user-defined file on the
SmartServer. The Delete function takes an <Item> element with a FileSystem_Data type as its input.
The <Item> element only needs to include the file’s <UCPTname> property in the Delete request as
demonstrated in the following code sample:

Request

<Delete xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<Item

xsi:type="FileSystem_Data">

<UCPTname>/Data/Test</UCPTname>
</Item>
</iLonItem>
</Delete>

Response

<Delete xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<Item

xsi:type="FileSystem_Data">

<UCPTname>/Data/Test</UCPTname>
</Item>
</iLonItem>
</Delete>

Advertising