purpleman51
06-02-2005, 01:36 PM
I am in desparate need of help as an important deadline (well, important to me at least :) ) is approaching. In other words, I need to make this work sometime in the next few hours (if at all possible).
I generated a web service and need to capture the output from invoking it. The code below does indeed invoke the service as the debug output for the value is correct. My problem is getting that value displayed in an application view and not just in the debug window. I tried following the Google example.
Any suggestions as to making my result display?
Thanks a bunch for any assistance!
<canvas debug="true" height="450">
<debug x="10" y="200" width="450" height="200" />
<dataset name="fiboData"/>
<soap name="fiboservice" wsdl="http://kenobi.am.lilly.com:8080/axis/fib.wsdl">
<method event="onload">
Debug.write('FiboService soap service loaded');
Debug.write('proxy:');
Debug.inspect(this.proxy);
</method>
<method event="onerror" args="error">
Debug.write('error: ', error);
</method>
<remotecall name="cf" funcname="calculateFibonacci" dataobject="fiboData">
<param value='${ num.text }' />
<method event="ondata" args="value">
Debug.write('calculation result: ', value);
</method>
</remotecall>
</soap>
<view x="10" y="10" layout="spacing:3">
<view layout="axis:x; spacing:5">
<text>Enter a number:</text>
<edittext id="num"/>
<button text="calculateFibonacci">
<method event="onclick">
Debug.write('getting calculation...');
fiboservice.cf.invoke();
Debug.write('finished with calculation...');
</method>
</button>
</view>
<view width="400" height="100" layout="axis: y" bgcolor="silver" clip="true">
<view>
<datapath xpath="fiboData:/calculateFibonacciResponse" pooling="true"/>
<text width="40" datapath="calculateFibonacciReturn/text()" clip="true"/>
</view>
</view>
</view>
</canvas>
XML output
<?xml version="1.0" encoding="UTF-8" ?>
- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <soapenv:Body>
- <calculateFibonacciResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<calculateFibonacciReturn xsi:type="xsd:int">55</calculateFibonacciReturn>
</calculateFibonacciResponse>
</soapenv:Body>
</soapenv:Envelope>
I generated a web service and need to capture the output from invoking it. The code below does indeed invoke the service as the debug output for the value is correct. My problem is getting that value displayed in an application view and not just in the debug window. I tried following the Google example.
Any suggestions as to making my result display?
Thanks a bunch for any assistance!
<canvas debug="true" height="450">
<debug x="10" y="200" width="450" height="200" />
<dataset name="fiboData"/>
<soap name="fiboservice" wsdl="http://kenobi.am.lilly.com:8080/axis/fib.wsdl">
<method event="onload">
Debug.write('FiboService soap service loaded');
Debug.write('proxy:');
Debug.inspect(this.proxy);
</method>
<method event="onerror" args="error">
Debug.write('error: ', error);
</method>
<remotecall name="cf" funcname="calculateFibonacci" dataobject="fiboData">
<param value='${ num.text }' />
<method event="ondata" args="value">
Debug.write('calculation result: ', value);
</method>
</remotecall>
</soap>
<view x="10" y="10" layout="spacing:3">
<view layout="axis:x; spacing:5">
<text>Enter a number:</text>
<edittext id="num"/>
<button text="calculateFibonacci">
<method event="onclick">
Debug.write('getting calculation...');
fiboservice.cf.invoke();
Debug.write('finished with calculation...');
</method>
</button>
</view>
<view width="400" height="100" layout="axis: y" bgcolor="silver" clip="true">
<view>
<datapath xpath="fiboData:/calculateFibonacciResponse" pooling="true"/>
<text width="40" datapath="calculateFibonacciReturn/text()" clip="true"/>
</view>
</view>
</view>
</canvas>
XML output
<?xml version="1.0" encoding="UTF-8" ?>
- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <soapenv:Body>
- <calculateFibonacciResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<calculateFibonacciReturn xsi:type="xsd:int">55</calculateFibonacciReturn>
</calculateFibonacciResponse>
</soapenv:Body>
</soapenv:Envelope>