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"
I obfuscated any sensitive information. I also noted that your close below doesn't match the open. Is that just a copy/paste error?
<trans>6727055159</trymm>
12-09-2014 10:48 AM
It should be <transId>********</transId>
12-09-2014 11:04 AM
https://apitest.authorize.net/soap/v1/Service.asmx?op=GetTransactionDetails
if you going to use soap, use the soap url
12-09-2014 12:21 PM
What is the name of the SOAP url that you used, in order to get a valid response?
12-09-2014 12:49 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:18 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 04:41 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
12-09-2014 05:07 PM - edited 12-09-2014 05:08 PM