<?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 00045 The root node does not reference a valid XML namespace. PHP-SDK in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/00045-The-root-node-does-not-reference-a-valid-XML-namespace-PHP/m-p/55813#M30645</link>
    <description>&lt;P&gt;Hello! Looking for solution for a long time, can't find anything, please help!&lt;/P&gt;&lt;P&gt;Using PHP-SDK, code based on "Sample Code" for credit card charge.&lt;/P&gt;&lt;P&gt;Transaction type -&amp;nbsp;authCaptureTransaction&lt;/P&gt;&lt;P&gt;After&amp;nbsp;$response = $controller-&amp;gt;executeWithApiResponse("&lt;A href="https://apitest.authorize.net" target="_blank"&gt;https://apitest.authorize.net&lt;/A&gt;");&lt;BR /&gt;var_dump($response);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;object(net\authorize\api\contract\v1\CreateTransactionResponse)#153 (5) {  ["transactionResponse":"net\authorize\api\contract\v1\CreateTransactionResponse":private]=&amp;gt;  NULL  ["profileResponse":"net\authorize\api\contract\v1\CreateTransactionResponse":private]=&amp;gt;  NULL  ["refId":"net\authorize\api\contract\v1\ANetApiResponseType":private]=&amp;gt;  NULL  ["messages":"net\authorize\api\contract\v1\ANetApiResponseType":private]=&amp;gt;  NULL  ["sessionToken":"net\authorize\api\contract\v1\ANetApiResponseType":private]=&amp;gt;  NULL}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;LogFile:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[_sendRequest] (/public_html/vendor/lib/net/authorize/util/HttpClient.php : 77) - Request to AnetApi: 
&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;createTransactionRequest&amp;gt;
  &amp;lt;ns-0fc19dc0:merchantAuthentication xmlns:ns-0fc19dc0="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;
    &amp;lt;ns-0fc19dc0:name&amp;gt;&amp;lt;![CDATA[mylogin]]&amp;gt;&amp;lt;/ns-0fc19dc0:name&amp;gt;
    &amp;lt;ns-0fc19dc0:transactionKey&amp;gt;&amp;lt;![CDATA[mytranskey]]&amp;gt;&amp;lt;/ns-0fc19dc0:transactionKey&amp;gt;
  &amp;lt;/ns-0fc19dc0:merchantAuthentication&amp;gt;
  &amp;lt;ns-0fc19dc0:clientId xmlns:ns-0fc19dc0="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;&amp;lt;![CDATA[sdk-php-1.9.0]]&amp;gt;&amp;lt;/ns-0fc19dc0:clientId&amp;gt;
  &amp;lt;ns-0fc19dc0:refId xmlns:ns-0fc19dc0="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;&amp;lt;![CDATA[ref1474550330]]&amp;gt;&amp;lt;/ns-0fc19dc0:refId&amp;gt;
  &amp;lt;ns-0fc19dc0:transactionRequest xmlns:ns-0fc19dc0="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;
    &amp;lt;ns-0fc19dc0:transactionType&amp;gt;&amp;lt;![CDATA[authCaptureTransaction]]&amp;gt;&amp;lt;/ns-0fc19dc0:transactionType&amp;gt;
    &amp;lt;ns-0fc19dc0:amount&amp;gt;1&amp;lt;/ns-0fc19dc0:amount&amp;gt;
    &amp;lt;ns-0fc19dc0:payment&amp;gt;
      &amp;lt;ns-0fc19dc0:creditCard&amp;gt;
        &amp;lt;ns-0fc19dc0:cardNumber&amp;gt;&amp;lt;![CDATA[xxxx]]&amp;gt;&amp;lt;/ns-0fc19dc0:cardNumber&amp;gt;
        &amp;lt;ns-0fc19dc0:expirationDate&amp;gt;&amp;lt;![CDATA[0618]]&amp;gt;&amp;lt;/ns-0fc19dc0:expirationDate&amp;gt;
        &amp;lt;ns-0fc19dc0:cardCode&amp;gt;&amp;lt;![CDATA[000]]&amp;gt;&amp;lt;/ns-0fc19dc0:cardCode&amp;gt;
      &amp;lt;/ns-0fc19dc0:creditCard&amp;gt;
    &amp;lt;/ns-0fc19dc0:payment&amp;gt;
    &amp;lt;ns-0fc19dc0:order&amp;gt;
      &amp;lt;ns-0fc19dc0:description&amp;gt;&amp;lt;![CDATA[Order #1037]]&amp;gt;&amp;lt;/ns-0fc19dc0:description&amp;gt;
    &amp;lt;/ns-0fc19dc0:order&amp;gt;
  &amp;lt;/ns-0fc19dc0:transactionRequest&amp;gt;
&amp;lt;/createTransactionRequest&amp;gt;

 [_sendRequest] (/public_html/vendor/lib/net/authorize/util/HttpClient.php : 89) - Sending 'XML' Request type
 [_sendRequest] (/public_html/vendor/lib/net/authorize/util/HttpClient.php : 94) - Sending http request via Curl
 [_sendRequest] (/public_html/vendor/lib/net/authorize/util/HttpClient.php : 96) - Response from AnetApi: &amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&amp;lt;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"&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;E00045&amp;lt;/code&amp;gt;&amp;lt;text&amp;gt;The root node does not reference a valid XML namespace.&amp;lt;/text&amp;gt;&amp;lt;/message&amp;gt;&amp;lt;message&amp;gt;&amp;lt;code&amp;gt;E00001&amp;lt;/code&amp;gt;&amp;lt;text&amp;gt;An error occurred during processing. Please try again.&amp;lt;/text&amp;gt;&amp;lt;/message&amp;gt;&amp;lt;/messages&amp;gt;&amp;lt;/ErrorResponse&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2016 14:03:54 GMT</pubDate>
    <dc:creator>loadbabe</dc:creator>
    <dc:date>2016-09-22T14:03:54Z</dc:date>
    <item>
      <title>00045 The root node does not reference a valid XML namespace. PHP-SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/00045-The-root-node-does-not-reference-a-valid-XML-namespace-PHP/m-p/55813#M30645</link>
      <description>&lt;P&gt;Hello! Looking for solution for a long time, can't find anything, please help!&lt;/P&gt;&lt;P&gt;Using PHP-SDK, code based on "Sample Code" for credit card charge.&lt;/P&gt;&lt;P&gt;Transaction type -&amp;nbsp;authCaptureTransaction&lt;/P&gt;&lt;P&gt;After&amp;nbsp;$response = $controller-&amp;gt;executeWithApiResponse("&lt;A href="https://apitest.authorize.net" target="_blank"&gt;https://apitest.authorize.net&lt;/A&gt;");&lt;BR /&gt;var_dump($response);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;object(net\authorize\api\contract\v1\CreateTransactionResponse)#153 (5) {  ["transactionResponse":"net\authorize\api\contract\v1\CreateTransactionResponse":private]=&amp;gt;  NULL  ["profileResponse":"net\authorize\api\contract\v1\CreateTransactionResponse":private]=&amp;gt;  NULL  ["refId":"net\authorize\api\contract\v1\ANetApiResponseType":private]=&amp;gt;  NULL  ["messages":"net\authorize\api\contract\v1\ANetApiResponseType":private]=&amp;gt;  NULL  ["sessionToken":"net\authorize\api\contract\v1\ANetApiResponseType":private]=&amp;gt;  NULL}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;LogFile:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[_sendRequest] (/public_html/vendor/lib/net/authorize/util/HttpClient.php : 77) - Request to AnetApi: 
&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;createTransactionRequest&amp;gt;
  &amp;lt;ns-0fc19dc0:merchantAuthentication xmlns:ns-0fc19dc0="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;
    &amp;lt;ns-0fc19dc0:name&amp;gt;&amp;lt;![CDATA[mylogin]]&amp;gt;&amp;lt;/ns-0fc19dc0:name&amp;gt;
    &amp;lt;ns-0fc19dc0:transactionKey&amp;gt;&amp;lt;![CDATA[mytranskey]]&amp;gt;&amp;lt;/ns-0fc19dc0:transactionKey&amp;gt;
  &amp;lt;/ns-0fc19dc0:merchantAuthentication&amp;gt;
  &amp;lt;ns-0fc19dc0:clientId xmlns:ns-0fc19dc0="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;&amp;lt;![CDATA[sdk-php-1.9.0]]&amp;gt;&amp;lt;/ns-0fc19dc0:clientId&amp;gt;
  &amp;lt;ns-0fc19dc0:refId xmlns:ns-0fc19dc0="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;&amp;lt;![CDATA[ref1474550330]]&amp;gt;&amp;lt;/ns-0fc19dc0:refId&amp;gt;
  &amp;lt;ns-0fc19dc0:transactionRequest xmlns:ns-0fc19dc0="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;
    &amp;lt;ns-0fc19dc0:transactionType&amp;gt;&amp;lt;![CDATA[authCaptureTransaction]]&amp;gt;&amp;lt;/ns-0fc19dc0:transactionType&amp;gt;
    &amp;lt;ns-0fc19dc0:amount&amp;gt;1&amp;lt;/ns-0fc19dc0:amount&amp;gt;
    &amp;lt;ns-0fc19dc0:payment&amp;gt;
      &amp;lt;ns-0fc19dc0:creditCard&amp;gt;
        &amp;lt;ns-0fc19dc0:cardNumber&amp;gt;&amp;lt;![CDATA[xxxx]]&amp;gt;&amp;lt;/ns-0fc19dc0:cardNumber&amp;gt;
        &amp;lt;ns-0fc19dc0:expirationDate&amp;gt;&amp;lt;![CDATA[0618]]&amp;gt;&amp;lt;/ns-0fc19dc0:expirationDate&amp;gt;
        &amp;lt;ns-0fc19dc0:cardCode&amp;gt;&amp;lt;![CDATA[000]]&amp;gt;&amp;lt;/ns-0fc19dc0:cardCode&amp;gt;
      &amp;lt;/ns-0fc19dc0:creditCard&amp;gt;
    &amp;lt;/ns-0fc19dc0:payment&amp;gt;
    &amp;lt;ns-0fc19dc0:order&amp;gt;
      &amp;lt;ns-0fc19dc0:description&amp;gt;&amp;lt;![CDATA[Order #1037]]&amp;gt;&amp;lt;/ns-0fc19dc0:description&amp;gt;
    &amp;lt;/ns-0fc19dc0:order&amp;gt;
  &amp;lt;/ns-0fc19dc0:transactionRequest&amp;gt;
&amp;lt;/createTransactionRequest&amp;gt;

 [_sendRequest] (/public_html/vendor/lib/net/authorize/util/HttpClient.php : 89) - Sending 'XML' Request type
 [_sendRequest] (/public_html/vendor/lib/net/authorize/util/HttpClient.php : 94) - Sending http request via Curl
 [_sendRequest] (/public_html/vendor/lib/net/authorize/util/HttpClient.php : 96) - Response from AnetApi: &amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&amp;lt;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"&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;E00045&amp;lt;/code&amp;gt;&amp;lt;text&amp;gt;The root node does not reference a valid XML namespace.&amp;lt;/text&amp;gt;&amp;lt;/message&amp;gt;&amp;lt;message&amp;gt;&amp;lt;code&amp;gt;E00001&amp;lt;/code&amp;gt;&amp;lt;text&amp;gt;An error occurred during processing. Please try again.&amp;lt;/text&amp;gt;&amp;lt;/message&amp;gt;&amp;lt;/messages&amp;gt;&amp;lt;/ErrorResponse&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 14:03:54 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/00045-The-root-node-does-not-reference-a-valid-XML-namespace-PHP/m-p/55813#M30645</guid>
      <dc:creator>loadbabe</dc:creator>
      <dc:date>2016-09-22T14:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: 00045 The root node does not reference a valid XML namespace. PHP-SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/00045-The-root-node-does-not-reference-a-valid-XML-namespace-PHP/m-p/55873#M30702</link>
      <description>&lt;P&gt;Can you please provide the exact sample code request you are using. We see&amp;nbsp;&lt;STRONG&gt;xmlns:ns-0fc19dc0&lt;/STRONG&gt; tag everywhere.&amp;nbsp;Usually we have xs: tag everywhere else, while the &lt;STRONG&gt;xmlns&lt;/STRONG&gt; tag is present only in the root createTransactionRequest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also from the logs, we see that you are not using the sample code repository,&lt;/P&gt;&lt;PRE&gt;/public_html/vendor/lib/net/authorize/util/HttpClient.php&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;rather you seem to using the php-sdk repository, in which you have added one sample code. So, can you provide the directory structure in which you have placed the file w.r.t. the sdk as well?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2016 09:44:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/00045-The-root-node-does-not-reference-a-valid-XML-namespace-PHP/m-p/55873#M30702</guid>
      <dc:creator>ashu8uec</dc:creator>
      <dc:date>2016-09-28T09:44:02Z</dc:date>
    </item>
  </channel>
</rss>

