well that's my problem when I was only returning a "string" I was getting that error.
As you can see I am still doing the same thing as I was before yet this time it's in a "struct". I'd rather not use this work around but I am stumped. When and if I get this fixed (i.e. more time) it's no problem to go back and take out the one extra line of code that it causes in the consuming app. Ian On Wed, 25 Aug 2004 16:26:04 -0400, Roland Collins <[EMAIL PROTECTED]> wrote: > Is there any reason you need the complex object returned? If you're only > trying to return the XML string, why don't you just change your return type > to "string" and CFRETURN o.final? > > > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of Ian Sheridan > Sent: Wednesday, August 25, 2004 4:20 PM > To: [EMAIL PROTECTED] > Subject: Re: [CFCDev] Web Services Problem > > Yes, I did that but strangely what worked was to go to struct output > also. This webservice is only to be consumed by other CF servers in > our network so that is not really that big an issue (just in case > someone would bring that up). > > I would still know why that was not working so if anyone can shed some > light on that, it would be great. > > Here is what I ended up with. > > <cffunction name="getUsers" access="remote" output="false" > returntype="struct" hint="This Function outputs an XML file in a > structure (final)."> > <cfargument name="showinactive" type="boolean" > required="true" > hint="show the inactive accounts"> > <cfset var t = structnew()><!--- temporary variables ---> > <cfset var o = structnew()><!--- output variables ---> > <cfscript> > // get results > t.output = > createobject("component","uau.com.users").getUsers(arguments.showinactive); > t.result = > createobject("component","uau.com.utility").queryToXML(t.output.result,"user > s","user"); > o.final = tostring(t.result); > </cfscript> > <cfreturn o> > </cffunction> > ---------------------------------------------------------- > You are subscribed to cfcdev. To unsubscribe, send an email > to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' > in the message of the email. > > CFCDev is run by CFCZone (www.cfczone.org) and supported > by Mindtool, Corporation (www.mindtool.com). > > An archive of the CFCDev list is available at > www.mail-archive.com/[EMAIL PROTECTED] > > ---------------------------------------------------------- > You are subscribed to cfcdev. To unsubscribe, send an email > to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' > in the message of the email. > > CFCDev is run by CFCZone (www.cfczone.org) and supported > by Mindtool, Corporation (www.mindtool.com). > > An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED] > -- ---------------------- Ian Sheridan http://www.savagevines.com ---------------------- ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
