This content has been marked as final. Show 8 replies
anyone know how to do this?
Within your <mx:operation> tag, you must define a handler for the result event; that handler should create your Array, or ArrayCollection, or dataProvider, or whatever. You will then have your data available to manipulate it any way you want.
Check out this document: http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_3.html.
I hope this helps. Have fun.
Yes. You can bind directly to the result, but is is such a bad idea I will not tell you how.
Do as Carlos suggests, use a result handler.
Also, set resultFormat="e4x" on the WebService, or Flex will convert your xml into a nested object structure. You probably do not want that.
Maybe I am totally missing the point.
I've changed my web service (Coldfusion CFC). It now looks like this.
<cffunction name="wsdlopp" access="remote" returntype="string">
Now when I run this I just want the word TESTING to pop up in the text box, but it's not doing that.
I went through the linked example, and I don't see what I am missing. In my mind, here is what I am seeing happen:
Page loads, calls my web service. On result, it calls my function. When the function runs, it writes the results to the textbox.text property.
PS. Thanks for the responses.
My FLEX code is this:
private function myfunction(event:ResultEvent):void
var xmlResult:XML = XML(event.result);
trace(xmlResult.toXMLString()); //to see your data
mytextbox.text = xmlResult.whatever; //depends on what yo see in trace above.
And I don't see where you are calling the webservice:
get_projects.wsdlop.send(); //do on application creationComplete, or a button click.
I've added a button to trigger the web service. When I run the program..it loads fine. When I hit the button, I get transferring data from www.myurl.com... at the bottom of firefox, but the trace never comes up. Any idea's about that?
I got it to work...I was thinking trace would work like it does in flash (a little pop up window)...once I ran it with debugging...i saw what to reference and my box says TESTING now...
OH HAPPY DAY!!!!!!
Thanks so much ntsiii