I've got a function in a cfc, that is doing a soap request via CFHTTP.
I've enabled output on the function, and can dump the
CFHTTP.filecontent successfully after the cfhttp call. I then return
that result from the function. However, in the calling cfm template,
the return variable on the function is coming up not defined.

So, I see the dump from inside the function, then an error that
Variable XXX is undefined.
Been fooling around with this for too long. Have tried moving logic
from function into CFM page, and I'm having different issues with the
results -- like being unable to do any xmlsearch calls on the results
at all, although I can reference individual node values with dot
notation.

Anybody got an idea what I'm missing here? I'm using similar structure
on other calls, and can't see the problem.

Thanks, Kris

-------------------

CFM template has:

<cfinvoke component="#oComp#" method="myfunc" returvariable="xxx">
        <cfinvokeargument name="arga" value="somevalue" />
        <cfinvokeargument name="argb" value="someothervalue />
</cfinvoke>

<cfdump var="#xxx#"><cfabort />

--------------------

CFC Function looks something like:

<cffunction name="myfunc" access="public" returntype="any" output="true">
<cfargument name="arga" type="string" required="yes">
<cfargument name="argb" type="string" required="yes">

<cfset var myresult = "" />
<cfset var mypacket = "" />

<cfsavecontent variable="nfws_soappacket">
        <cfoutput>
        .....[soap description here]....
        </cfoutput>
</cfsavecontent>

<cfhttp url="someaddress" method="POST">
....param
....param
</cfhttp>

<cfset myresult = xmlParse(cfhttp.FileContent) />
<cfdump var="#myresult#" />

<cfreturn myresult />
</cffunction>

-------------------

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312128
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to