Hi Simon... and others who responded.
Thank you for getting back to me so quickly.
I actually copied my original code from Forta's Advanced ColdFusion Application
Development 4.0, Page. 284: Chapter 16 16 Using WDDX to Create Distributed
Applications.
However, I changed my code as you suggested and I am still getting problems. I
am running 4.0.1 CF SYBASE Advantage holds my database and I'm on a UNIX CF
server.
<CFWDDX action="cfml2wddx" input="#result_data#" output="wddxPacket">
<!--- When I run cf_dump, it all works, as before, cf_dump var='#wddxPacket#'
--->
<FORM NAME="search" ACTION="tt_wddx_action.cfm" METHOD="post">
<INPUT TYPE ="hidden"
NAME ="wddxContent"
VALUE ="#wddxPacket#">
<INPUT TYPE="submit" NAME="submit" VALUE="Continue" >
</FORM>
On the action page:
<CFOUTPUT>
<CFWDDX
input="#Form.wddxContent#"
output="qRowInfo"
action="WDDX2CFML">
</CFOUTPUT>
Results:
Error Occurred While Processing Request
Error Diagnostic Information XML parsing error: not well-formed (error code 4,
line 1, column 11, buffer offset 11) The error occurred while processing an
element with a general identifier of (CFWDDX), occupying document position
(12:2) to (15:21) in the template file
/albweb/inet/docs/intranet/cfapps/star/sync/tt_wddx_action.cfm The specific
sequence of files included or processed is:
/albweb/inet/docs/intranet/cfapps/star/sync/tt_wddx_action.cfm . Date/Time: Mon
Feb 05 11:33:45 2001 Browser: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT)
Remote Address: 10.57.92.152 HTTP Referer:
http://albwebdev2/cfapps/star/sync/tt_wddx.cfm Template:
/albweb/inet/docs/intranet/cfapps/star/sync/tt_wddx_action.cfm
Execution Time
50 milliseconds
Parameters
Form Fields:
SUBMIT=Continue
WDDXCONTENT=#wddxPacket#
FIELDNAMES=WDDXCONTENT,SUBMIT
Carol L. Bluestein
Senior Programmer
NYS Office of Real Property
518-486-6335
[EMAIL PROTECTED]
____________________Reply Separator____________________
Subject: RE: Help: WDDX deserialize problem
Author: [EMAIL PROTECTED]
Date: 2/2/01 3:51 PM
HTML Formatting the XML Packet "breaks" the XML formatting. You shouldn't
need to HTMLFormat the variable before passing it. If you wanted to format
it at all and still be able to use it as XML, I'd think you'd want to use
the XMLFormat() function.
~Simon
> Simon Horwith
> Allaire Certified ColdFusion Instructor
> Certified ColdFusion Developer
> Fig Leaf Software
> 1400 16th St NW, # 220
> Washington DC 20036
> 202.797.6570 (direct line)
> www.figleaf.com
>
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 3:36 PM
To: CF-Talk
Subject: Help: WDDX deserialize problem
I'm sure this is a Friday problem and I'm just brain dead but I have no idea
what is going wrong or what the message directs me to correct. Something is
happening and I've no idea how to fix it or where to look. Would appreciate
it
if someone could point me in right direction. It is probably right under my
nose but it has eluded me for longer than I care to say.
<CFWDDX action="cfml2wddx" input="#result_data#" output="wddxPacket">
<cf_dump var='#wddxPacket#'>
Works fine: dump shows all info, no problem (fields that have NULL in them
are
showing up empty)
#HTMLEditFormat(wddxPacket)# : also shows everything, no problem
OK. Stick in a form.
<FORM NAME="search" ACTION="sync_main_action2.cfm" METHOD="post">
<INPUT type="hidden"
name="wddxContent"
VALUE="#HTMLEditFormat(wddxPacket)#">
<input TYPE="submit" TITLE="Continue" NAME="submit" VALUE="Continue"
TITLE="Continue and process" ACCESSKEY="C" >
</FORM
Go to Action page:
Deserialize in "sync_main_action2.cfm"
<CFWDDX
input="#Form.wddxContent#"
output="qRowInfo"
action="WDDX2CFML">
BOOOOMMMM!
Error Diagnostic Information
XML parsing error: not well-formed (error code 4, line 1, column 15, buffer
offset 15)
The error occurred while processing an element with a general identifier of
(CFWDDX), occupying document position (50:1) to (53:20) in the template file
/albweb/inet/docs/intranet/cfapps/star/sync/sync_main_action2.cfm
The specific sequence of files included or processed is:
/albweb/inet/docs/intranet/cfapps/star/sync/sync_main_action2.cfm .
Date/Time: Fri Feb 02 15:32:13 2001
Browser: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT)
Remote Address: 10.57.92.152
HTTP Referer: http://albwebdev2/cfapps/star/sync/sync_main_action.cfm
Template: /albweb/inet/docs/intranet/cfapps/star/sync/sync_main_action2.cfm
Thanks, in advance,
Carol
Carol L. Bluestein
Senior Programmer
NYS Office of Real Property
518-486-6335
[EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists