As an aside and just a bit of trivia (though it may help someone some day),
since what you're getting is an object, note that in the list, one of its
methods is Tostring (as is almost always true of Java objects). So besides
John's suggestion of using the CFML ToString function, you could also have
called that ToString method. You'd put it at the end of the object
reference, rather than wrap it in the ToString function:
 
<cfoutput>#cfhttp.FileContent.toString()#</cfouput> 
 
I'd be curious if that works for you, if you have a moment to try it.
 
/Charlie
http://www.carehart.org/blog/  

 

  _____  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Nunn
Sent: Wednesday, January 10, 2007 4:48 PM
To: [email protected]
Subject: Re: [ACFUG Discuss] XMLParse Problems


object of java.io.ByteArrayOutputStream
        
Methods  toString (returns java.lang.String)
toString (returns java.lang.String)
toString (returns java.lang.String)
size (returns int)
write (returns void)
write (returns void)
reset (returns void)
toByteArray (returns [B) 
close (returns void)
writeTo (returns void)
write (returns void)
flush (returns void)
hashCode (returns int)
getClass (returns java.lang.Class)
wait (returns void)
wait (returns void)
wait (returns void) 
equals (returns boolean)
notify (returns void)
notifyAll (returns void)
        
 
This is what I'm getting.

 
On 1/10/07, John Mason <[EMAIL PROTECTED]> wrote: 

What does this yield..
 
<cfoutput>#cfhttp.FileContent#</cfouput> 
 
John
 

  _____  

From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ] 
On
Behalf Of Thomas Nunn
Sent: Wednesday, January 10, 2007 4:22 PM 

To: [email protected]
Subject: Re: [ACFUG Discuss] XMLParse Problems 


 


No. It's supposed to return an xml formatted string. Would this error occur
if I were getting an empty string do you think?

 

On 1/10/07, John Mason <[EMAIL PROTECTED] > wrote:

Ok, is the cfhttp calling up an image or something with a particular type of
encoding?
 
John
[EMAIL PROTECTED] 
 
 

  _____  

From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ] 
On
Behalf Of Thomas Nunn
Sent: Wednesday, January 10, 2007 3:25 PM 

To: [email protected]
Subject: Re: [ACFUG Discuss] XMLParse Problems 


 

I just checked it and it is actually uncompressed. Any other ideas?


 
On 1/10/07, John Mason <[EMAIL PROTECTED] > wrote: 

If the page is using http compression it will not pull via cfhttp. Sorry but
the underlining java can't handle it. It sounds like this might be it,
because of the cfhttp error you are seeing. 
 
To test it use the compression check tool on this page..
http://www.port80software.com/products/zipenable/
<http://www.port80software.com/products/zipenable/> 
 
 
John
[EMAIL PROTECTED] 
 
 

  _____  

From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ] 
On
Behalf Of Thomas Nunn
Sent: Wednesday, January 10, 2007 12:18 PM
To: [email protected]
Subject: Re: [ACFUG Discuss] XMLParse Problems

 

Not that I'm aware of John. I don't have any real control over that website.
I'm just trying to pull down information from a customer of ours to display
data for a customer of mine. Can you give me a bit more detail of what it
would mean if they were or weren't doing it? 


 
On 1/10/07, John Mason <[EMAIL PROTECTED] > wrote: 

Is the page you're trying to hit using http compression?
 
John
[EMAIL PROTECTED] 
 
 

  _____  

From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ] 
On
Behalf Of Thomas Nunn
Sent: Wednesday, January 10, 2007 11:56 AM
To: [email protected]
Subject: [ACFUG Discuss] XMLParse Problems

 

I'm receiving an error message when I try try to parse incoming xml data
from a cfhttp call to a url. The url is supposed to send back miscellaneous
xml formatted data.
 
<cfhttp method="get" url="{url}">
 
<cfscript>
   xmlstuff = XMLParse(cfhttp.FileContent);
</cfscript>
 
The error I'm getting is:
      An error occurred while Parsing an XML document. Content is not
allowed in prolog.
 
Also whenever I just do a cfdump of the cfhttp.FileContent I get an object
of java.io.ByteArrayOutputStream. I don't know if that has anything to do
with the error or if this is just the way that unparsed xml data comes from
the server I'm "getting" from. 
 
Honestly, I'm assuming that the data I'm receiving is malformed, but I
wanted to know if anyone else has had any experience with this problem.
Thanks ahead of time.
__________________________________
Larry Nunn
Web Developer I
Synovus Financial Corp.
2510 Cherokee Ave. #25A
Columbus, GA 31906
706.575.2816 

------------------------------------------------------------- 
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform
<http://www.acfug.org/?fa=login.edituserform> 

For more info, see http://www.acfug.org/mailinglists 
Archive @ http://www.mail-archive.com/discussion%40acfug.org/ 
List hosted by FusionLink <http://www.fusionlink.com/>  
------------------------------------------------------------- 

------------------------------------------------------------- 
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform
<http://www.acfug.org/?fa=login.edituserform>  

For more info, see http://www.acfug.org/mailinglists
<http://www.acfug.org/mailinglists> 
Archive @ http://www.mail-archive.com/discussion%40acfug.org/ 
List hosted by FusionLink <http://www.fusionlink.com/>  
------------------------------------------------------------- 





-- 
__________________________________
Larry Nunn
Web Developer I
Synovus Financial Corp.
2510 Cherokee Ave. #25A
Columbus, GA 31906
706.575.2816 
------------------------------------------------------------- 
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform
<http://www.acfug.org/?fa=login.edituserform> 

For more info, see http://www.acfug.org/mailinglists 
Archive @ http://www.mail-archive.com/discussion%40acfug.org/ 
List hosted by FusionLink <http://www.fusionlink.com/>  
------------------------------------------------------------- 

------------------------------------------------------------- 
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform
<http://www.acfug.org/?fa=login.edituserform>  

For more info, see http://www.acfug.org/mailinglists
<http://www.acfug.org/mailinglists> 
Archive @ http://www.mail-archive.com/discussion%40acfug.org/ 
List hosted by FusionLink <http://www.fusionlink.com/>  
------------------------------------------------------------- 




-- 
__________________________________
Larry Nunn
Web Developer I
Synovus Financial Corp.
2510 Cherokee Ave. #25A
Columbus, GA 31906
706.575.2816 
------------------------------------------------------------- 
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform
<http://www.acfug.org/?fa=login.edituserform> 

For more info, see http://www.acfug.org/mailinglists 
Archive @ http://www.mail-archive.com/discussion%40acfug.org/ 
List hosted by FusionLink <http://www.fusionlink.com/>  
------------------------------------------------------------- 

------------------------------------------------------------- 
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform
<http://www.acfug.org/?fa=login.edituserform>  

For more info, see http://www.acfug.org/mailinglists
<http://www.acfug.org/mailinglists> 
Archive @ http://www.mail-archive.com/discussion%40acfug.org/ 
List hosted by FusionLink <http://www.fusionlink.com/>  
------------------------------------------------------------- 




-- 
__________________________________
Larry Nunn
Web Developer I
Synovus Financial Corp.
2510 Cherokee Ave. #25A
Columbus, GA 31906
706.575.2816 
------------------------------------------------------------- 
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform
<http://www.acfug.org/?fa=login.edituserform> 

For more info, see http://www.acfug.org/mailinglists 
Archive @ http://www.mail-archive.com/discussion%40acfug.org/ 
List hosted by FusionLink <http://www.fusionlink.com/>  
------------------------------------------------------------- 

------------------------------------------------------------- 
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform
<http://www.acfug.org/?fa=login.edituserform>  

For more info, see http://www.acfug.org/mailinglists
<http://www.acfug.org/mailinglists> 
Archive @ http://www.mail-archive.com/discussion%40acfug.org/ 
List hosted by FusionLink <http://www.fusionlink.com/>  
------------------------------------------------------------- 




-- 
__________________________________
Larry Nunn
Web Developer I
Synovus Financial Corp.
2510 Cherokee Ave. #25A
Columbus, GA 31906
706.575.2816 
------------------------------------------------------------- 
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform 

For more info, see http://www.acfug.org/mailinglists 
Archive @ http://www.mail-archive.com/discussion%40acfug.org/ 
List hosted by FusionLink <http://www.fusionlink.com>  
------------------------------------------------------------- 



-------------------------------------------------------------
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------

<<attachment: atte0ed2.jpg>>

Reply via email to