PDA

View Full Version : count number of datasets in soap request?


Schlabbermaul
07-14-2005, 03:16 AM
hi!
i've created a soap request and it works fine. how can i count the number of results the request delivers?

i tried:

<dataset name="dsList" />
<soap name="getList" wsdl="http://localhost:8080/somewsdl">
<method event="onload">
getList.invoke();
</method>

<remotecall funcname="getList" dataobject="dsList">
</remotecall>
</soap>

<datapointer name="listPointer" xpath="dsList:/" />

<script>
var i = canvas.listPointer.xpathQuery( '/*/count()' );
Debug.write(i);
</script>


but it only returns null.
someone knows how to get the number of datasets?

mmenti
07-14-2005, 03:25 AM
I had a similar problem with getting count() to work.. see my post at:
http://www.laszlosystems.com/developers/community/forums/showthread.php?s=&threadid=3401

... also contains a getaround that worked in my case.