<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: AIM XML E00002 Error troubleshooting in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-XML-E00002-Error-troubleshooting/m-p/32565#M17117</link>
    <description>&lt;P&gt;Is it from &lt;A href="http://www.troi.com/software/urldetails.html" target="_blank"&gt;http://www.troi.com/software/urldetails.html&lt;/A&gt; ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Look like they have a TURL_SetCustomHeader function. Might be something like or you might have to read the manual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="font-size: 78%;"&gt;TURL_SetCustomHeader( "" ; "Content-Type: text/xml" )&lt;/SPAN&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 18 Jan 2013 00:22:32 GMT</pubDate>
    <dc:creator>RaynorC1emen7</dc:creator>
    <dc:date>2013-01-18T00:22:32Z</dc:date>
    <item>
      <title>AIM XML E00002 Error troubleshooting</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-XML-E00002-Error-troubleshooting/m-p/32563#M17115</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Here's the situation:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have a FileMaker Pro database solution that currently uses a payment gateway (not&amp;nbsp;&lt;A href="http://authorize.net/" target="_blank"&gt;Authorize.net&lt;/A&gt;) to handle credit card transactions. The transactions are submitted using XML and a URL Post. I use the Troi URL plugin to do the POST because FileMaker does not have POST capability built in. There is no issue with this gateway, it's worked fine for years.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am now trying to do the same thing with&amp;nbsp;&lt;A href="http://authorize.net/" target="_blank"&gt;Authorize.net&lt;/A&gt;. Using the AIM XML guide, I have setup an XML "payload" to submit to the test URL. When I submit it I'm getting back the following Error message including the garbage characters at the beginning:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV class="indent"&gt;&lt;EM&gt;Ôªø&amp;lt;?xml&amp;nbsp;version="1.0" encoding="utf-8"?&amp;gt;&amp;lt;ErrorResponse xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;" xmlns:xsd="&lt;A href="http://www.w3.org/2001/XMLSchema" target="_blank"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;&amp;lt;messages&amp;gt;&amp;lt;resultCode&amp;gt;Error&amp;lt;/resultCode&amp;gt;&amp;lt;message&amp;gt;&amp;lt;code&amp;gt;E00002&amp;lt;/code&amp;gt;&amp;lt;text&amp;gt;&lt;STRONG&gt;The content-type specified is not supported&lt;/STRONG&gt;.&amp;lt;/text&amp;gt;&amp;lt;/message&amp;gt;&amp;lt;/messages&amp;gt;&amp;lt;/ErrorResponse&amp;gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;A href="http://authorize.net/" target="_blank"&gt;Authorize.net&lt;/A&gt;&amp;nbsp;description of this error is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV class="indent"&gt;API Error Code: E00002&lt;BR /&gt;Error Code Text: The content-type specified is not supported.&lt;BR /&gt;Description: The only supported content-types are text/xml and application/xml.&lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;My Troi URL plugin submission in FileMaker looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TURL_Post( ""; "&lt;/SPAN&gt;&lt;A href="https://apitest.authorize.net/xml/v1/request.api" target="_blank"&gt;https://apitest.authorize.net/xml/v1/request.api&lt;/A&gt;&lt;SPAN&gt;"; "xml=" &amp;amp; $XML_Payload )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The $XML_Payload is a simply a script variable that contains the sample XML code below. What I'm wondering is if&amp;nbsp;&lt;A href="http://authorize.net/" target="_blank"&gt;Authorize.net&lt;/A&gt;&amp;nbsp;expects some special string or code to say that this is "text/xml" coming in. Note that the string "xml=" precedes the XML code below when it gets submitted. This works fine with&amp;nbsp;the existing gateway and seems to make no difference to Authorize.net whether it's there or not, it still produces the E00002 error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV class="indent"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;BR /&gt;&amp;lt;createTransactionRequest&lt;BR /&gt;xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;"&lt;BR /&gt;xmlns:xsd="&lt;A href="http://www.w3.org/2001/XMLSchema" target="_blank"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;"&lt;BR /&gt;xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;&lt;BR /&gt;&amp;lt;merchantAuthentication&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;111222333&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;transactionKey&amp;gt;1234123412341234&amp;lt;/transactionKey&amp;gt;&lt;BR /&gt;&amp;lt;/merchantAuthentication&amp;gt;&lt;BR /&gt;&amp;lt;transactionRequest&amp;gt;&lt;BR /&gt;&amp;lt;transactionType&amp;gt;sale&amp;lt;/TransactionType&amp;gt;&lt;BR /&gt;&amp;lt;amount&amp;gt;10&amp;lt;/amount&amp;gt;&lt;BR /&gt;&amp;lt;payment&amp;gt;&lt;BR /&gt;&amp;lt;creditCard&amp;gt;&amp;lt;cardNumber&amp;gt;4111111111111111&amp;lt;/cardNumber&amp;gt;&lt;BR /&gt;&amp;lt;expirationDate&amp;gt;12/13&amp;lt;/expirationDate&amp;gt;&lt;BR /&gt;&amp;lt;cardCode&amp;gt;123&amp;lt;/cardCode&amp;gt;&amp;lt;/creditCard&amp;gt;&lt;BR /&gt;&amp;lt;/payment&amp;gt;&lt;BR /&gt;\&amp;lt;customer&amp;gt;&amp;lt;id&amp;gt;115&amp;lt;/id&amp;gt;&amp;lt;&amp;gt;&amp;lt;/&amp;gt;&amp;lt;/customer&amp;gt;&lt;BR /&gt;&amp;lt;billTo&amp;gt;&lt;BR /&gt;&amp;lt;firstName&amp;gt;Sally&amp;lt;/firstName&amp;gt;&lt;BR /&gt;&amp;lt;lastName&amp;gt;Peterson&amp;lt;/lastName&amp;gt;&lt;BR /&gt;&amp;lt;company&amp;gt;&amp;lt;/company&amp;gt;&lt;BR /&gt;&amp;lt;address&amp;gt;8 Steiger Road&amp;lt;/address&amp;gt;&lt;BR /&gt;&amp;lt;city&amp;gt;Boston&amp;lt;/city&amp;gt;&lt;BR /&gt;&amp;lt;state&amp;gt;MA&amp;lt;/state&amp;gt;&lt;BR /&gt;&amp;lt;zip&amp;gt;02116&amp;lt;/zip&amp;gt;&lt;BR /&gt;&amp;lt;country&amp;gt;&amp;lt;/country&amp;gt;&lt;BR /&gt;&amp;lt;/billTo&amp;gt;&lt;BR /&gt;&amp;lt;customerIP&amp;gt;&amp;lt;/customerIP&amp;gt;&lt;BR /&gt;&amp;lt;transactionSettings&amp;gt;&lt;BR /&gt;&amp;lt;setting&amp;gt;&lt;BR /&gt;&amp;lt;settingName&amp;gt;allowPartialAuth&amp;lt;/settingName&amp;gt;&lt;BR /&gt;&amp;lt;settingValue&amp;gt;false&amp;lt;/settingValue&amp;gt;&lt;BR /&gt;&amp;lt;/setting&amp;gt;&lt;BR /&gt;&amp;lt;setting&amp;gt;&amp;lt;settingName&amp;gt;duplicateWindow&amp;lt;/settingName&amp;gt;&lt;BR /&gt;&amp;lt;settingValue&amp;gt;0&amp;lt;/settingValue&amp;gt;&lt;BR /&gt;&amp;lt;/setting&amp;gt;&amp;lt;setting&amp;gt;&amp;lt;settingName&amp;gt;Customer&amp;lt;/settingName&amp;gt;&amp;lt;settingValue&amp;gt;false&amp;lt;/settingValue&amp;gt;&lt;BR /&gt;&amp;lt;/setting&amp;gt;&lt;BR /&gt;&amp;lt;setting&amp;gt;&amp;lt;settingName&amp;gt;testRequest&amp;lt;/settingName&amp;gt;&lt;BR /&gt;&amp;lt;settingValue&amp;gt;false&amp;lt;/settingValue&amp;gt;&lt;BR /&gt;&amp;lt;/setting&amp;gt;&lt;BR /&gt;&amp;lt;/createTransactionRequest&amp;gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Jan 2013 21:36:22 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-XML-E00002-Error-troubleshooting/m-p/32563#M17115</guid>
      <dc:creator>wmloving</dc:creator>
      <dc:date>2013-01-17T21:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: AIM XML E00002 Error troubleshooting</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-XML-E00002-Error-troubleshooting/m-p/32565#M17117</link>
      <description>&lt;P&gt;Is it from &lt;A href="http://www.troi.com/software/urldetails.html" target="_blank"&gt;http://www.troi.com/software/urldetails.html&lt;/A&gt; ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Look like they have a TURL_SetCustomHeader function. Might be something like or you might have to read the manual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="font-size: 78%;"&gt;TURL_SetCustomHeader( "" ; "Content-Type: text/xml" )&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Jan 2013 00:22:32 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-XML-E00002-Error-troubleshooting/m-p/32565#M17117</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-01-18T00:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: AIM XML E00002 Error troubleshooting</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-XML-E00002-Error-troubleshooting/m-p/32567#M17119</link>
      <description>&lt;P&gt;Yes. This is exactly the issue. Just needed to set a Custom Header declaring "Content-Type:text/xml" and it worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2013 03:57:34 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-XML-E00002-Error-troubleshooting/m-p/32567#M17119</guid>
      <dc:creator>wmloving</dc:creator>
      <dc:date>2013-01-18T03:57:34Z</dc:date>
    </item>
  </channel>
</rss>

