beautypg.com

Appendix a: soap tester example, See appendix a: soap tester example – Echelon i.LON SmartServer 2.0 User Manual

Page 437

background image

i.LON SmartServer 2.0 Programmer’s Reference

A-1

Appendix A: SOAP Tester Example

You can use the iLON SOAP Tester (version 2.0.3994) to perform functional testing of the
SmartServer’s pre-defined SOAP functions and your user-defined SOAP functions. The SOAP Tester
is an unsupported engineering-level tool provided by Echelon. You can download the SOAP Tester
from the i.LON SmartServer Community Web site at

http://ilonsmartserver.com/files

. If you have a

SmartServer 2.0 (Release 4.03), the SOAP Tester is also included on the i.LON SmartServer 2.0 DVD
in the iLon100\iLon100\unsupported\SoapTester folder.

This appendix provides a quick example that demonstrates how to uses the SOAP Tester to toggle the
digital relay outputs on the SmartServer (the Net/LON/iLON App/Digital Output 1/nviClaValue_1 and
Net/LON/iLON App/Digital Output 2/nviClaValue_2 data points). This example uses the List, Get,
Read, and Write functions in the Data Server’s SOAP interface.

This example assumes that you are using a SmartServer that has been set to its factory default settings.
This prevents compilation errors based on mismatching properties of the objects in the
L

ON

W

ORKS

network hierarchy (network/channel/device/functional block/data point).

To use the SOAP Tester to toggle the digital relay outputs on the SmartServer, follow these steps:

1. Start the SOAP Tester.

Note: By default, the SOAP Tester is set to the version 4.0 SOAP namespace used by the
SmartServer. You can change the SOAP namespace to 3.0 to use the SOAP Tester with an i.LON
e3 server, or you can change it to 1.1 to use the SOAP Tester with an i.LON e3 or e2 server.

2. In the URL box, enter the IP address of your SmartServer.

3. In the Application property, select DP. This sets the xsi type to Dp_Cfg (data point

configuration). The selected xsi type will be used in the xSelect property to filter the items
returned by the subsequent SOAP functions. For more information on the xsi types that you can
use in xSelect statements, see section 2.5.8.1 xsi Types.