Try wrapping your CFWDDX arguments in double quotes...seemed like I got the
same error without them...

<CFWDDX ACTION="CFML2WDDX" INPUT="#qry#" OUTPUT="qryWDDX">


> Ok,
>   Making progress but left without the warm fuzzy feeling at the end of
the
> day.  Make that two days.  Have a class in VB which is creating a
formatted
> wddx packet, function as follows:
>
> Public Function GetData() As String
>     Dim StrXml As String
>     StrXml = "<xmp><wddxPacket
> version='1.0'><header></header><data><recordset rowCount='2'
> fieldNames='MESSAGE_ID,THREAD_ID'><field
> name='MESSAGE_ID'><number>346</number><number>347</number></field><field
>
name='THREAD_ID'><number>162</number><number>162</number></field></recordset
> ></data></wddxPacket></xmp>"
>     GetData = StrXml
>
> End Function
>
>
> in the coldfusion I have a constructor and the call to the method
retrurning
> the value as follows:
> <cftry>
> <cfobject type="COM" name="VB_COM" class="VBCOM.XmlParsor"
action="CREATE">
> <cfset wddxText = VB_COM.GetData()>
> <cfcatch type="any">
> opps
> </cfcatch>
>
> </cftry>
> <CFwddx ACTION='wddx2cfml' input=#wddxText# output='serializedrs'> --->
>
> The recordset data is:...<P>
> <CFOUTPUT query="serializedrs">
>     #NAME#,#AGE#<br>
> </CFOUTPUT><P>
>
> Ok so here's the skinny,.....the method returns the string wddxText, and
it
> is indeed there.  It is in the appropriate format, I tested with regular
> conversion with cfml query.  However when I process the page with a com
> implemntation I get the following error:
> Error Diagnostic Information
> unknown element encountered
>
> Just so everyone knows, the line/string prints out just fine as variable
> unto itself i.e. <cfoutput>#wddxText</cfoutput>.  I also tried having the
vb
> com object return a variant type as well instead of a string, that was not
> it either.  Any ideas guys?
> Shannon
>
> -----Original Message-----
> From: WBB [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 01, 2000 4:05 PM
> To: [EMAIL PROTECTED]
> Subject: Re: VB COM Examples
>
>
> Hi Shannon,
>
> I don't know if that would work or not (I've never tried it) but you might
> consider sending the resultset or collection back as a formatted WDDX (a
> string works fine for this) packet and read the packet in with CF..
>
>
> > Examples,
> >   I am looking for examples of com implementation for coldfusion.  I am
> > working on a com object in VB, which has methods for returning a string
> for
> > the coldfusion tags, this works fine.  What I am looking for now is a
way
> to
> > return a resultset, or a collection for colfusion to loop through.  Has
> > anyone done this?  Alaires site makes no referrence to it, although it
> does
> > say it supports com implenetation.
> > Shannon
> >
>
> --------------------------------------------------------------------------


------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to