You could even try using method="trace" and see what the web service says 
you're sending to them.

[cid:[email protected]]
___________________________________________________________________________________________

Troy Jones  |  Developer/Support Technician  |  Dynapp Inc  |  1-800-830-5192  
ext. 603  |  dynapp.com<http://www.dynapp.com/>  |  
facebook.com/dynapp<http://www.facebook.com/dynapp>

From: [email protected] [mailto:[email protected]] On Behalf Of Charlie Arehart
Sent: Wednesday, February 16, 2011 10:20 PM
To: [email protected]
Subject: RE: [ACFUG Discuss] Troubleshooting CFHTTP Webservice Call

Clarke, the 400 syntax error is a start, but there may be more information 
being returned from the called server. Are you outputting the cfhttp 
variable/structure afterward to see what it shows in its various keys? Also, 
you could wrap it in a CFTRY and dump also the CFCATCH variable/structure. 
Finally, if you're on CF9, there is an option in the CF Admin to enable logging 
of CFHTTP requests, which could also provide useful info. Finally, even on CF8 
or 7, you may find information being written to the application.log with 
perhaps the additional error details as well.

/charlie

From: [email protected] [mailto:[email protected]] On Behalf Of Clarke Bishop
Sent: Wednesday, February 16, 2011 6:39 PM
To: [email protected]
Subject: [ACFUG Discuss] Troubleshooting CFHTTP Webservice Call

Does anyone have any good suggestions for troubleshooting a CFHTTP Webservice 
call. All, I'm getting back is a 400 - Syntax error.

I want to capture the HTTP request to see what might be wrong.

The webservice expects an application/atom+xml  POST so I am doing this:

<cfhttp method="post" url="#hsURL#"   >
                <cfhttpparam type="header" name="Content-Type" 
value="application/atom+xml"/>
                <cfhttpparam type="body" value="#payload#">
</cfhttp>

Thecfhttpparam type="body" body is set to the XML that the webservice expects.

Thanks for any suggestions!

   Clarke

-------------------------------------------------------------
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>
-------------------------------------------------------------
________________________________

No virus found in this message.
Checked by AVG - www.avg.com<http://www.avg.com>
Version: 10.0.1204 / Virus Database: 1435/3448 - Release Date: 02/16/11

-------------------------------------------------------------
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

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


<<inline: image001.jpg>>

Reply via email to