<?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: Error E00003: Name cannot begin with the '&amp;gt;' character, hexadecimal value 0x3E. Line 2, posit in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-E00003-Name-cannot-begin-with-the-gt-character-hexadecimal/m-p/32110#M16704</link>
    <description>&lt;P&gt;Oh crap...! You're right, of course! Thanks so much for making me see the obvious!&lt;/P&gt;</description>
    <pubDate>Thu, 13 Dec 2012 13:34:02 GMT</pubDate>
    <dc:creator>paltinescu</dc:creator>
    <dc:date>2012-12-13T13:34:02Z</dc:date>
    <item>
      <title>Error E00003: Name cannot begin with the '&gt;' character, hexadecimal value 0x3E. Line 2, position 250</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-E00003-Name-cannot-begin-with-the-gt-character-hexadecimal/m-p/32100#M16699</link>
      <description>&lt;P&gt;I'm trying to use the CIM API, but when calling its createCustomerProfileTransaction() method, I get to the error mentioned in the title.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as I could determine, this is caused by the internal&amp;nbsp;_addObject() method listing all properties of the $transaction object (line #115 in AuthorizeNetCIM), including the private and protected ones. In case of these, the $key variables (line #382 in the same file) have invalid values, hence the submitted XML is invalid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm listing the resulting, submitted XML content below so that you could see what I'm talking about:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;createCustomerProfileTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;
    &amp;lt;merchantAuthentication&amp;gt;
        &amp;lt;name&amp;gt;588keqHBF3&amp;lt;/name&amp;gt;
        &amp;lt;transactionKey&amp;gt;657kXV4brP97w8ZK&amp;lt;/transactionKey&amp;gt;
    &amp;lt;/merchantAuthentication&amp;gt;
    &amp;lt;transaction&amp;gt;
        &amp;lt;profileTransAuthCapture&amp;gt;
            &amp;lt;&amp;gt;none&amp;lt;/&amp;gt;
            &amp;lt;&amp;gt;
                &amp;lt;0&amp;gt;AuthOnly&amp;lt;/0&amp;gt;
            &amp;lt;/&amp;gt;
            &amp;lt;&amp;gt;
                &amp;lt;0&amp;gt;AuthCapture&amp;lt;/0&amp;gt;
            &amp;lt;/&amp;gt;
            &amp;lt;&amp;gt;
                &amp;lt;0&amp;gt;CaptureOnly&amp;lt;/0&amp;gt;
            &amp;lt;/&amp;gt;
            &amp;lt;&amp;gt;
                &amp;lt;0&amp;gt;PriorAuthCapture&amp;lt;/0&amp;gt;
            &amp;lt;/&amp;gt;
            &amp;lt;&amp;gt;
                &amp;lt;0&amp;gt;Refund&amp;lt;/0&amp;gt;
            &amp;lt;/&amp;gt;
            &amp;lt;&amp;gt;
                &amp;lt;0&amp;gt;Void&amp;lt;/0&amp;gt;
            &amp;lt;/&amp;gt;
            &amp;lt;&amp;gt;588keqHBF3&amp;lt;/&amp;gt;
            &amp;lt;&amp;gt;657kXV4brP97w8ZK&amp;lt;/&amp;gt;
            &amp;lt;VERIFY_PEER&amp;gt;1&amp;lt;/VERIFY_PEER&amp;gt;
            &amp;lt;&amp;gt;1&amp;lt;/&amp;gt;
            &amp;lt;lineItems&amp;gt;
                &amp;lt;itemId&amp;gt;1&amp;lt;/itemId&amp;gt;
                &amp;lt;name&amp;gt;Menu Item 1 MOD&amp;lt;/name&amp;gt;
                &amp;lt;quantity&amp;gt;2&amp;lt;/quantity&amp;gt;
                &amp;lt;unitPrice&amp;gt;31.95&amp;lt;/unitPrice&amp;gt;
                &amp;lt;taxable&amp;gt;false&amp;lt;/taxable&amp;gt;
            &amp;lt;/lineItems&amp;gt;
            &amp;lt;lineItems&amp;gt;&amp;lt;itemId&amp;gt;9&amp;lt;/itemId&amp;gt;&amp;lt;name&amp;gt;Discount started&amp;lt;/name&amp;gt;&amp;lt;quantity&amp;gt;1&amp;lt;/quantity&amp;gt;&amp;lt;unitPrice&amp;gt;17.21&amp;lt;/unitPrice&amp;gt;&amp;lt;taxable&amp;gt;false&amp;lt;/taxable&amp;gt;&amp;lt;/lineItems&amp;gt;
            &amp;lt;amount&amp;gt;81.11&amp;lt;/amount&amp;gt;
            &amp;lt;customerProfileId&amp;gt;11098440&amp;lt;/customerProfileId&amp;gt;
            &amp;lt;customerPaymentProfileId&amp;gt;10090266&amp;lt;/customerPaymentProfileId&amp;gt;
        &amp;lt;/profileTransAuthCapture&amp;gt;
    &amp;lt;/transaction&amp;gt;
&amp;lt;/createCustomerProfileTransactionRequest&amp;gt;&lt;/PRE&gt;&lt;P&gt;Again, I'm not generating this XML - it's automatically done by the PHP SDK.&lt;/P&gt;&lt;P&gt;Any ideas for how to solve this issue? It's been messing with my head all day...&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2012 21:09:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-E00003-Name-cannot-begin-with-the-gt-character-hexadecimal/m-p/32100#M16699</guid>
      <dc:creator>paltinescu</dc:creator>
      <dc:date>2012-12-12T21:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error E00003: Name cannot begin with the '&gt;' character, hexadecimal value 0x3E. Line 2, posit</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-E00003-Name-cannot-begin-with-the-gt-character-hexadecimal/m-p/32104#M16701</link>
      <description>&lt;P&gt;can you post the code that you use to create the transaction?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2012 23:51:50 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-E00003-Name-cannot-begin-with-the-gt-character-hexadecimal/m-p/32104#M16701</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2012-12-12T23:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error E00003: Name cannot begin with the '&gt;' character, hexadecimal value 0x3E. Line 2, posit</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-E00003-Name-cannot-begin-with-the-gt-character-hexadecimal/m-p/32106#M16702</link>
      <description>&lt;P&gt;It's something like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$lineItem              = new AuthorizeNetLineItem;
$lineItem-&amp;gt;itemId      = '123';
$lineItem-&amp;gt;name        = 'itemName';
$lineItem-&amp;gt;quantity    = '1';
$lineItem-&amp;gt;unitPrice   = '1.23';
$lineItem-&amp;gt;taxable     = 'false';

$transaction = new AuthorizeNetCIM;

$transaction-&amp;gt;lineItems[] = $lineItem;

$transaction-&amp;gt;amount = '1.23';
$transaction-&amp;gt;customerProfileId = $customerProfileID;
$transaction-&amp;gt;customerPaymentProfileId = $paymentProfileID;
$transaction-&amp;gt;customerShippingAddressId = $shippingProfileID;

$request = new AuthorizeNetCIM;

$response = $request-&amp;gt;createCustomerProfileTransaction('AuthCapture', $transaction);

if($response-&amp;gt;isOk()){
    $transactionResponse = $response-&amp;gt;getTransactionResponse();
    
    //...
}else{
    //...
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The three variables ($customerProfileID, $paymentProfileID, $shippingProfileID) contain valid, real IDs (I can see them in my Authorize.Net account's Customer Information Manager page).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, I don't think that my code has anything to do with this error. I think the problem happens in AuthorizeNetCIM class' _addObject() method, called from its createCustomerProfileTransaction() method. Since _addObject() is a method called from within an AuthorizeNetCIM object, it lists all of the $transaction object's properties, including its protected and private ones - and I think those are the ones messing the resulting XML.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 07:56:35 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-E00003-Name-cannot-begin-with-the-gt-character-hexadecimal/m-p/32106#M16702</guid>
      <dc:creator>paltinescu</dc:creator>
      <dc:date>2012-12-13T07:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error E00003: Name cannot begin with the '&gt;' character, hexadecimal value 0x3E. Line 2, posit</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-E00003-Name-cannot-begin-with-the-gt-character-hexadecimal/m-p/32108#M16703</link>
      <description>&lt;PRE&gt;$transaction = new AuthorizeNetCIM;&lt;/PRE&gt;&lt;P&gt;should be&lt;/P&gt;&lt;PRE&gt;$transaction = new AuthorizeNetTransaction;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 12:20:43 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-E00003-Name-cannot-begin-with-the-gt-character-hexadecimal/m-p/32108#M16703</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2012-12-13T12:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error E00003: Name cannot begin with the '&gt;' character, hexadecimal value 0x3E. Line 2, posit</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-E00003-Name-cannot-begin-with-the-gt-character-hexadecimal/m-p/32110#M16704</link>
      <description>&lt;P&gt;Oh crap...! You're right, of course! Thanks so much for making me see the obvious!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 13:34:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-E00003-Name-cannot-begin-with-the-gt-character-hexadecimal/m-p/32110#M16704</guid>
      <dc:creator>paltinescu</dc:creator>
      <dc:date>2012-12-13T13:34:02Z</dc:date>
    </item>
  </channel>
</rss>

