So, it looks like the problem has to do with one of your CFHTTPPARAM tags.
First, try CFDUMPing the CFCATCH scope from within you CFCATCH block.  That
might give you some more information.

Another option to consider is that you might have to explicitly specify the
port.  Most HTTPS connections come in over port 443.  Try adding PORT="443"
to your CFHTTP tag.

And, finally, in case the data you passed along is exactly the same as
you're using, you might want/have to change your username and or password
with ebay:

<request>
<RequestUserId>don9876</RequestUserId>
<RequestPassword>*********</RequestPassword>
...

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 942-5378
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/

-----Original Message-----
From: Chunshen (Don) Li [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 9:21 AM
To: CF-Talk
Subject: Re:cfhttp tag failed

Thanks, Mosh, here's code (objective, testing connection to eBay API box)

code start
----------
<cfset CompatibilityLevel = "311">
<cfset DeveloperName = "W9LA6MJ48O3GIDCE1N1JE3K15BY795">
<cfset ApplicationName = "DLC354PZ946F5GBKTIR4OA18U9CB3J">
<cfset CertificateName = "M59JS1K9Y61$E7XG26E92-872ZCEFK">
<cfset CallName = "GeteBayOfficialTime">
<cfset DetailLevel = "0">
<cfset SiteId = "0">

<cfset XMLRequest = "<?xml version=""1.0"" encoding=""iso-8859-1""?">
<request xmlns=""urn:eBayAPIschema"">
<request>
<RequestUserId>don9876</RequestUserId>
<RequestPassword>qwert1234</RequestPassword>
<DetailLevel>0</DetailLevel>
<ErrorLevel>1</ErrorLevel>
<SiteId>0</SiteId>
<Verb>GeteBayOfficialTime</Verb>
</request>

<cftry>
<cfhttp url="" method="POST">

<cfhttpparam name="X-EBAY-API-SESSION-CERTIFICATE"
value="#DeveloperName#;#ApplicationName#;#CertificateName#" type="FORM">
<cfhttpparam name="X-EBAY-API-COMPATIBILITY-LEVEL"
value="#CompatibilityLevel#" type="FORM">
<cfhttpparam name="X-EBAY-API-CALL-NAME" value="#CallName#" type="FORM">
<cfhttpparam name="X-EBAY-API-DEV-NAME" value="#DeveloperName#" type="FORM">
<cfhttpparam name="X-EBAY-API-APP-NAME" value="#ApplicationName#"
type="FORM">
<cfhttpparam name="X-EBAY-API-CERT-NAME" value="#CertificateName#"
type="FORM">
<cfhttpparam name="X-EBAY-API-SITEID" value="#SiteId#" type="FORM">
<cfhttpparam name="X-EBAY-API-DETAIL-LEVEL" value="#DetailLevel#"
type="FORM">
<cfhttpparam name="request" value="#XMLRequest#" type="xml">
</cfhttp>

<cfcatch type="any"></cfcatch>
</cftry>

<h1>Return Vals:</h1><br>
<cfdump var="#XMLParse(CFHTTP.FileContent, 'no')#">

---------
code ends

err msg:
Element FILECONTENT is undefined in CFHTTP.

The error occurred in C:\mywebsrvDocDir\eBay\test_james.cfm: line 38

36 :
37 : <h1>Return Vals:</h1><br>
38 : <cfdump var="#XMLParse(CFHTTP.FileContent, 'no')#">

Exceptions (from debugging output)

09:46:19.019 - Application Exception - in
C:\mywebsrvDocDir\eBay\test_james.cfm : line 23
    Attribute validation error for tag CFHTTPPARAM.

(my comment, line 23 reads
<cfhttpparam name="X-EBAY-API-SESSION-CERTIFICATE"
value="#DeveloperName#;#ApplicationName#;#CertificateName#" type="FORM">
)

09:46:19.019 - _expression_ Exception - in
C:\mywebsrvDocDir\eBay\test_james.cfm : line 38
    Element FILECONTENT is undefined in CFHTTP.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to