cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to connect to Server error for both XML & SOAP - ARB

Hi All,

 

I downloaded the sample code for Automated Recurring Billing (ARB) API from the website. Executed and tested the downloaded code in my local machine using my own registered loginname and Transaction Key which worked great.

 

XML:

After that I included the CreateSubscription method in my local project and when I execute the below code I get an error  "Unable to connect to the remote server".

 

 HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(ConfigurationManager.AppSettings["ApiUrl"]);
 webRequest.Method = "POST";
webRequest.ContentType = "text/xml";
webRequest.KeepAlive = true;
Stream w1 = webRequest.GetRequestStream();
SOAP:
Even in SOAP I get an error when I execute the below code I get similar error message i.e., "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 64.94.118.152:443"

ARBCreateSubscriptionResponseType response;
response = _webservice.ARBCreateSubscription(authentication, subscription);

 

Please can someone help me understand what is the difference in executing your given example and writing the same for my project.

 

Thanks,

Hemanth

3 REPLIES 3

Not sure what to tell you but I try both the XML and the SOAP version, and they both works for me.

Can you put https://apitest.authorize.net/soap/v1/Service.asmx in your browser windows and see if is work?

RaynorC1emen7
Expert

Yes I am able to access but when I call the SOAP from my code it throws below error

 

"There was no endpoint listening at https://apitest.authorize.net/soap/v1/Service.asmx that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details."

 

Inner Exception : {"A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 10.136.15.163:8080"}

 

Would you like me to upload the code to see what I am trying to do??

 

64.94.118.152:443

That the https://apitest.authorize.net/

 

10.136.15.163:8080

What is that?

 

If you could please post your code.