System.Net.WebException:无法连接到远程服务器

时间:2014-12-18 15:33:11

标签: vb.net web-services authorize.net

使用SOAP API将Authorise.net连接到我的MVC应用程序时遇到问题 建立连接时显示以下错误

  

System.Net.WebException:无法连接到远程服务器--->   System.Net.Sockets.SocketException:连接尝试失败   因为关联方在一段时间后没有正确回应   时间或已建立的连接因连接的主机而失败   未能回复64. 。* 。***:443 at   System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot,   SocketAddress(socketAddress)at   System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure,   插座s4,插座s6,插座& socket,IPAddress&地址,   ConnectSocketState状态,IAsyncResult asyncResult,Exception&   例外)---内部异常堆栈跟踪结束--- at   Microsoft.VisualBasic.CompilerServices.Symbols.Container.InvokeMethod(方法   TargetProcedure,Object [] Arguments,Boolean [] CopyBack,BindingFlags   旗帜)   Microsoft.VisualBasic.CompilerServices.NewLateBinding.ObjectLateGet(对象   实例,类型类型,字符串成员名称,对象[]参数,字符串[]   ArgumentNames,Type [] TypeArguments,Boolean [] CopyBack)at   Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(对象   实例,类型类型,字符串成员名称,对象[]参数,字符串[]   ArgumentNames,Type [] TypeArguments,Boolean [] CopyBack)

我正在使用SOAP API参考,我的代码是

 Dim m_new_cust As New CustomerProfileWS.CustomerProfileType()
            m_new_cust.email = email
            m_new_cust.description = ""
            m_new_cust.merchantCustomerId = "6mZV4p5a96Lzx4pE"


            Dim responsecreate As CustomerProfileWS.CreateCustomerProfileResponseType = SoapAPIUtilities.Service.CreateCustomerProfile(SoapAPIUtilities.MerchantAuthentication, m_new_cust, CustomerProfileWS.ValidationModeEnum.none)

0 个答案:

没有答案