Components-$159.lzx
<canvas debug="true" height="280">
<debug x="10" y="40" width="470" height="230"/>
<soap name="temperature" autoload="false" wsdl="http://developerdays.com/cgi-bin/tempconverter.exe/wsdl/ITempConverter">
<method name="init">
super.init();
Debug.debug('soap service loading...');
this.load();
</method>
<handler name="onload">
Debug.debug('temperature service loaded!');
Debug.debug('---');
// don't allow others to call RPC object until proxy is loaded.
canvas.convert.setAttribute('visible', true);
</handler>
<handler name="ondata" args="value">
Debug.debug('soap object parent ondata: %w', value);
</handler>
<remotecall name="ftoc1" funcname="FtoC">
<param value="100"/>
</remotecall>
<remotecall name="ftoc2" funcname="FtoC">
<param value="200"/>
<handler name="ondata" args="value">
Debug.debug('ftoc ondata: %w', value);
</handler>
</remotecall>
</soap>
<view name="convert" x="10" y="10" visible="false" layout="axis: x; spacing: 5">
<button text="convert 100F to C">
<handler name="onclick">
canvas.temperature.ftoc1.invoke()
Debug.debug('Invoking FtoC 1...');
</handler>
</button>
<button text="convert 200F to C">
<handler name="onclick">
canvas.temperature.ftoc2.invoke()
Debug.debug('Invoking FtoC 2...');
</handler>
</button>
</view>
</canvas>
Cross References
Named Instances