RE: [flexcoders] output String from WebService
Using resultFormat=xml, you do not need to use createXML, the result is already an XML document. You can use trace(result.toString()) to see the xmp string. Tracy -Original Message- From: Steiner, Jeff [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 7:07 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] output String from WebService Yes. I trigger the web service and I put the result like this: mx:operation name=AddUser resultFormat=xml result=postResult(event) In this function is where I have been trying everything. function postResult(event) { xmlResult = mx.utils.XMLUtil.createXML(event.result); resultText.text = mx.utils.ArrayUtil.toArray(registration.addUser.result); } I know that I am just overlooking something - just can't figure it out. -Original Message- From: jeff tapper [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 12:24 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] output String from WebService silly questions, but did you trigger the web service? At 03:08 PM 3/30/2005, you wrote: I am seeing an issue that I know has a simple answer - I just keep getting undefined as a result. I have a WebService call to a CFC that returns a String. Simple so far? My result is undefined no matter what I try, when I output it. Any ideas? Jeff cffunction name=AddUser access=remote returnType=string output=false cfset this.success = 'You account has been successfully created. You may now Login.' cfreturn this.success / /cffunction mx:WebService id=registration wsdl=authenticationModule2.cfc?WSDL showBusyCursor=true mx:operation name=AddUser / /mx:WebService Yahoo! Groups Sponsor ADVERTISEMENT http://us.ard.yahoo.com/SIG=129fgu1uc/M=298184.6018725.7038619.3001176 /D=groups/S=1705007207:HM/EXP=1112299714/A=2593423/R=0/SIG=11el9gslf/*h ttp://www.netflix.com/Default?mqso=60190075 click here -- Yahoo! Groups Links * To visit your group on the web, go to: * http://groups.yahoo.com/group/flexcoders/http://groups.yahoo.com/grou p/flexcoders/ * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED]fle [EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] output String from WebService
Yes. I trigger the web service and I put the result like this: mx:operation name=AddUser resultFormat=xml result=postResult(event) In this function is where I have been trying everything. function postResult(event) { xmlResult = mx.utils.XMLUtil.createXML(event.result); resultText.text = mx.utils.ArrayUtil.toArray(registration.addUser.result); } I know that I am just overlooking something - just can't figure it out. -Original Message- From: jeff tapper [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 12:24 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] output String from WebService silly questions, but did you trigger the web service? At 03:08 PM 3/30/2005, you wrote: I am seeing an issue that I know has a simple answer - I just keep getting undefined as a result. I have a WebService call to a CFC that returns a String. Simple so far? My result is undefined no matter what I try, when I output it. Any ideas? Jeff cffunction name=AddUser access=remote returnType=string output=false cfset this.success = 'You account has been successfully created. You may now Login.' cfreturn this.success / /cffunction mx:WebService id=registration wsdl=authenticationModule2.cfc?WSDL showBusyCursor=true mx:operation name=AddUser / /mx:WebService Yahoo! Groups Sponsor ADVERTISEMENT http://us.ard.yahoo.com/SIG=129fgu1uc/M=298184.6018725.7038619.3001176 /D=groups/S=1705007207:HM/EXP=1112299714/A=2593423/R=0/SIG=11el9gslf/*h ttp://www.netflix.com/Default?mqso=60190075 click here -- Yahoo! Groups Links * To visit your group on the web, go to: * http://groups.yahoo.com/group/flexcoders/http://groups.yahoo.com/grou p/flexcoders/ * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED]fle [EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] output String from WebService
Title: Example instantiated and static utility classes You are not showing a result handler. How are you checking the result? Tracy From: Steiner, Jeff [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 3:08 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] output String from WebService I am seeing an issue that I know has a simple answer - I just keep getting undefined as a result. I have a WebService call to a CFC that returns a String. Simple so far? My result is undefined no matter what I try, when I output it. Any ideas? Jeff cffunction name=AddUser access=remote returnType=string output=false cfset this.success = 'You account has been successfully created. You may now Login.' cfreturn this.success / /cffunction mx:WebService id=registration wsdl=authenticationModule2.cfc?WSDL showBusyCursor=true mx:operation name=AddUser / /mx:WebService Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] output String from WebService
silly questions, but did you trigger the web service? At 03:08 PM 3/30/2005, you wrote: I am seeing an issue that I know has a simple answer - I just keep getting undefined as a result. I have a WebService call to a CFC that returns a String. Simple so far? My result is undefined no matter what I try, when I output it. Any ideas? Jeff cffunction name=AddUser access=remote returnType=string output=false cfset this.success = 'You account has been successfully created. You may now Login.' cfreturn this.success / /cffunction mx:WebService id=registration wsdl=authenticationModule2.cfc?WSDL showBusyCursor=true mx:operation name=AddUser / /mx:WebService Yahoo! Groups Sponsor ADVERTISEMENT http://us.ard.yahoo.com/SIG=129fgu1uc/M=298184.6018725.7038619.3001176/D=groups/S=1705007207:HM/EXP=1112299714/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075 click here -- Yahoo! Groups Links * To visit your group on the web, go to: * http://groups.yahoo.com/group/flexcoders/http://groups.yahoo.com/group/flexcoders/ * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED][EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/