From: rboudwin on 7 Mar 2007 13:20 When I put the url in my browser, this is what I get: <?xml version="1.0" encoding="utf-8" ?> - <ErrorResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"> - <messages> <resultCode>Error</resultCode> - <message> <code>E00002</code> <text>The content-type specified is not supported.</text> </message> </messages> </ErrorResponse>
From: rboudwin on 7 Mar 2007 13:32 Okay, I see that I was mixing ideas. Thank you for clarifying! (The sample you gave has a simple typo in case anyone else reads this post and tests it - two opening cfxml tags.) So . . . when I post via http, I want it in a string or as an object? Does that depend on the recipient? I would assume as an object. I'm also not finding "official" documentation that cfhttpparam has a type "xml." I see it in examples and other posts, but I'm wondering if this could be part of the problem - matching data types.
From: Ian Skinner on 7 Mar 2007 14:53 So . . . when I post via http, I want it in a string or as an object? Does that depend on the recipient? I would assume as an object. I'm also not finding "official" documentation that cfhttpparam has a type "xml." I see it in examples and other posts, but I'm wondering if this could be part of the problem - matching data types. Actually the opposite, you would us a string. CFHTTP, is just http requests - you are doing a fancy form post. The code you provide could be replaced by a form something like this. You would not expect an object to work in a form input. <form action="https://api.authorize.net/sml/v1/request.api" method="post"> <input type="hidden" name="XMLUpload" value="#xmlString#" </form> Obviously this would not do anything without some type of action to generate a submit in the browser. If you are expecting to use <cfhttp...> you should be using a string, the string just needs to be a valid representation of XML. If this is a web service, and you do need to pass in an actual object, then you need to be using other options, such as createObject(), <cfobject...> or <cfinvoke...> to access it as an web service to which you can pass complex objects.
From: rboudwin on 10 Mar 2007 21:34 I ended up using cfsavecontent with a cfhttp. I was getting connection failure errors. After days of researching this, I found documentation regarding a bug. I was finally able to connect to the test site, but I never could connect to the produciton site at Authorize.Net. After a full week of requesting help from the development team, they never responded. We're going a different route because it is too unstable. Thank you for all of your help! http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19139 http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=95f66fd8 http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_18198 http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_18172
First
|
Prev
|
Pages: 1 2 3 4 Prev: CFGRIDUPDATE not working properly Next: Error in CF form in flash format |