Thanks Doug!

 

Yes I am running CF8 locally, and I do have Charles. And, yes, it actually
is a RESTful web service, not SOAP - I should be more precise!

 

When I tried Charles yesterday, it showed the traffic for my browsers, but
not for the CFHTTP call. I think I have to use the Proxyport and Proxyserver
parameters in my CFHTTP call to get it to go through Charles, or maybe
there's another way. Do you know of any good instructions for setting all
this up right?

 

   Clarke

 

From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Douglas Knudsen
Sent: Wednesday, February 16, 2011 11:08 PM
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] Troubleshooting CFHTTP Webservice Call

 

Are you running CF locally for testing? Use Charles, Service Capture, or
Fiddler then to see the request as well as response.  Also, Eclipse Web
tools has a webservice tester...wait, that's not a WebService, rather a
RESTful web service you are using, sorry to be pedantic there but its a big
difference SOAP vs REST, can't use the WebService tool in Eclipse for that.
Yeah, a man-in-the-middile tool like Charles, Service Capture, or Fiddler
can let you peek into much and verify that CF is indeed sending the header
and all correctly

 

nice SO posting on test tools for this sort of thing

http://stackoverflow.com/questions/1087185/http-testing-tool-easily-send-pos
t-get-put

these would test that the service does what its supposed to before adding CF
to the picture....eg, see if you can blame someone else :)

 

 


Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?



On Wed, Feb 16, 2011 at 10:38 PM, Troy Jones <t...@dynapp.com> wrote:

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

 

da_logo_70x263
____________________________________________________________________________
_______________

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

 

From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Charlie Arehart
Sent: Wednesday, February 16, 2011 10:20 PM
To: discussion@acfug.org
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: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Clarke Bishop
Sent: Wednesday, February 16, 2011 6:39 PM
To: discussion@acfug.org
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
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 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
-------------------------------------------------------------

<<image001.jpg>>

Reply via email to