2 web binding, Web binding -17, Web binding – Echelon i.LON SmartServer 2.0 User Manual

Page 31

Advertising
background image

i.LON SmartServer 2.0 Programmer’s Reference

2-17

</ValueDef>
<ValueDef>
<UCPTindex>1</UCPTindex>
<UCPTname>ON</UCPTname>
<UCPTvalue

LonFormat="#0000000000000000[0].SNVT_switch"

>100.0

1</UCPTvalue>

</ValueDef>
</Item>

</iLonItem>

</GetResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

2.10.2

Web Binding

You can use the WebBinder application on the SmartServer to send a SOAP message when a data
point update occurs. When the source data point (Dp_Data) in a Web connection is updated, the
SmartServer sends a Write request message for the transaction, and the response is sent by the receiver,
which may be another SmartServer, an LNS server, or a WebBinder Target (a Web server that can
process SOAP requests). The following example shows a Write message that is sent by a SmartServer
and is configured by the WebBinder application.

Request Message

<?xml version="1.0" encoding="utf-8" ?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Header>
<p:messageProperties

xmlns:p="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">

<p:UCPTtimeStamp>2008-04-08T11:14:56.289-07:00</p:UCPTtimeStamp>
<p:UCPTuniqueId>0300000A5BF2</p:UCPTuniqueId>
<p:UCPTipAddress>10.2.124.53</p:UCPTipAddress>
<p:UCPTport>80</p:UCPTport>
<p:UCPTlastUpdate>2008-04-08T18:10:37Z</p:UCPTlastUpdate>
<p:UCPTprocessingTime>102</p:UCPTprocessingTime>
</p:messageProperties>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<Write

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

<iLonItem>

<UCPTfaultCount>0</UCPTfaultCount>
<Item

xsi:type="Dp_Data">

<UCPTname>Net/LON/iLON

App/Digital

Input

1/nvoClsValue_1</UCPTname>

<UCPTannotation>Dp_Out;xsi:type="LON_Dp_Cfg"</UCPTannotation>
<UCPThidden>0</UCPThidden>
<UCPTaliasName>NVL_nvoClsValue_1</UCPTaliasName>
<UCPTlastUpdate>2008-04-08T11:14:53.599-07:00</UCPTlastUpdate>
<UCPTvalue

LonFormat="#0000000000000000[0].SNVT_switch">0.0

0</UCPTvalue>

<UCPTvalue

LonFormat="UCPTvalueDef">OFF</UCPTvalue>

<UCPTpointStatus

LonFormat="UCPTpointStatus">AL_NO_CONDITION</UCPTpointStatus>

<UCPTpriority>255</UCPTpriority>
</Item>

</iLonItem>

</Write>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Response Message

<?xml version="1.0" encoding="utf-8" ?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Header>
<p:messageProperties

xmlns:p="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">

<p:UCPTtimeStamp>2008-04-08T11:37:32.156-07:00</p:UCPTtimeStamp>
<p:UCPTuniqueId>0300000A5BF2</p:UCPTuniqueId>
<p:UCPTipAddress>10.2.124.53</p:UCPTipAddress>
<p:UCPTport>80</p:UCPTport>
<p:UCPTlastUpdate>2008-04-08T18:22:52Z</p:UCPTlastUpdate>

Advertising