12-09-2014 09:51 AM - last edited on 12-09-2014 10:47 AM by RichardH
I am trying to use the API to get transaction details, however I receive the error E00004 The name of the requested API method is invalid
I m using "https://apitest.authorize.net/xml/v1/request.api" as the url.
This is the xml code I am entering:
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <GetTransactionDetailsRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"> <merchantAuthentication> <name>***</name> <transactionKey>***</transactionKey> </merchantAuthentication> <trans>6727055159</trymm> </GetTransactionDetailsRequest> </soap12:Body> </soap12:Envelope>
I have tried changing the method to GetTransactionDetails and also tried changing the xmlns to the Soap Documentation value(https://api.authorize.net/soap/v1/). I started using soap 1.1 and still had the same error code.
I then use a header parameter with an attribute called "name" with a value of "SoapAction" and an attribute value, "value" with a value of "https://apitest.authorize.net/v1/GetTransactionDetails"
12-09-2014 10:48 AM
I obfuscated any sensitive information. I also noted that your close below doesn't match the open. Is that just a copy/paste error?
12-09-2014 04:18 PM
If you click on that link it said
POST /soap/v1/Service.asmx HTTP/1.1 Host: apitest.authorize.net Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "https://api.authorize.net/soap/v1/GetTransactionDetails"
12-09-2014 04:41 PM
It still did not work. I tried that document and another document before I posted my message. When I use the url that is in the SOAP document, does not connect, however when I use the url, https://apitest.authorize.net/soap/v1/request.api, I am getting connected to the API; I just get the E00004 error. What did you use in order to connect to the transaction details API and get it to return a valid response.
12-09-2014 05:07 PM - edited 12-09-2014 05:08 PM
I use C#, Visual Studio build the webservice thing.
you sure it is not https://apitest.authorize.net/soap/v1/Service.asmx
POST /soap/v1/Service.asmx HTTP/1.1