|
Hi, I have a Flex application based on Cairngorm talking
over SOAP to a webservice. The app includes a search function which is supposed
to return an array of objects. The first time the user clicks ‘search’
from the UI, the results turn up perfectly. The second time the ResultEvent has
different contents, and the third time it fails completely. Here is the code that sends the request: var call:AsyncToken =
op.send(); call.resultHandler =
responder.onResult; call.faultHandler =
responder.onFault; the resultHandler is called from the ServiceLocator, with
the ResultEvent: result="event.token.resultHandler(
event )" and the responder.onFault gets a ResultEvent with contents: resultEvent.result.myData =
mx.collections.ArrayCollection So far so good. The second time, the ResultEvent contains: resultEvent.result.out.myData = mx.collections.ArrayCollection I have done a comparison of the SOAP responses and requests
each time and they are identical except for the order of the objects in the
returned array. The request and arguments on the operation I am sending are
also identical each time. The third time, the operation looks the same again,
but the SOAP request seems to contain two sets of what it’s supposed to
have, and I get a SOAP error response “soap:Server … Index: 2,
Size: 2”. Why is it that I do the same thing 3 times and get 3
different results? I have been stumped on this for days and would be grateful
for any ideas! Thanks Clare -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |

