Reply
Highlighted
Member
Posts: 1
Registered: ‎12-09-2015

Error E00004 (name of the requested API method is invalid)

I've just gotten the sdk-php-master package installed on my development server, and tried to run the example script in README.md.  The log file shows the XML sent and the response, but I have no idea what to do next to correct this error.

 

Any suggestions will be appreciated.

--------------------------------------------------------------------------------------------------------------------------------

 Thu, 10 Dec 2015 00:11:32 +0000 INFO : [_sendRequest] (/home/means/trunk/weddingsite/authorize.net/lib/net/authorize/util/HttpClient.php : 78) -  Url: https://apitest.authorize.net/xml/v1/request.api
 Thu, 10 Dec 2015 00:11:32 +0000 INFO : [_sendRequest] (/home/means/trunk/weddingsite/authorize.net/lib/net/authorize/util/HttpClient.php : 80) - Request to AnetApi:
<?xml version="1.0" encoding="UTF-8"?>
<result>
  <merchant_authentication>
    <name><![CDATA[--obscured--]]></name>
    <transaction_key><![CDATA[--obscured]]></transaction_key>
  </merchant_authentication>
  <transaction_request>
    <transaction_type><![CDATA[authCaptureTransaction]]></transaction_type>
    <amount>151.51</amount>
    <payment>
      <credit_card>
        <card_number><![CDATA[xxxx]]></card_number>
        <expiration_date><![CDATA[2038-12]]></expiration_date>
      </credit_card>
    </payment>
  </transaction_request>
</result>

 Thu, 10 Dec 2015 00:11:32 +0000 INFO : [_sendRequest] (/home/means/trunk/weddingsite/authorize.net/lib/net/authorize/util/HttpClient.php : 92) - Sending 'XML' Request type
 Thu, 10 Dec 2015 00:11:32 +0000 INFO : [_sendRequest] (/home/means/trunk/weddingsite/authorize.net/lib/net/authorize/util/HttpClient.php : 97) - Sending http request via Curl
 Thu, 10 Dec 2015 00:11:33 +0000 INFO : [_sendRequest] (/home/means/trunk/weddingsite/authorize.net/lib/net/authorize/util/HttpClient.php : 99) - Response from AnetApi:  <?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>E00004</code><text>The name of the requested API method is invalid.</text></message></messages></ErrorResponse>

Highlighted
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Error E00004 (name of the requested API method is invalid)

https://github.com/AuthorizeNet/sdk-php/search?utf8=%E2%9C%93&q=TransactionRequestType

look like readme.md is outdated apiContract\TransactionRequestType()

 

post your issue there

https://github.com/AuthorizeNet/sdk-php/issues