访问Web服务中的方法!! [英] Accessing methods in the web service !!

查看:69
本文介绍了访问Web服务中的方法!!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的网络服务中使用方法,当我尝试这样做时它会返回此错误:



2013/02/04 08:23: 09 AM ==>无法连接到远程服务器System.Net.Sockets.SocketException(0x80004005):连接尝试失败,因为连接方在一段时间后没有正确响应,或者建立的连接失败,因为连接的主机无法响应196.30.46.204 :86

在System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot,SocketAddress socketAddress)

在System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure,Socket s4,套接字s6,套接字和套接字,IP地址和地址,ConnectSocketState状态,IAsyncResult asyncResult,Int32超时,异常和异常)



在我的网络服务中。



我检查了我的防火墙和防病毒已被禁用,我可以通过浏览器访问该网站。



请帮助?

I am trying to use methods in my web service and when I try to do so it return this error:

2013/02/04 08:23:09 AM ==> Unable to connect to the remote server System.Net.Sockets.SocketException (0x80004005): 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 196.30.46.204:86
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)

in my web service.

I checked that my firewall and anti-virus is disabled and that I can visit the site through my browser.

Please help ?

推荐答案

如果是外部站点,则表示您没有在URL中指定端口号。它现在工作正常。
If its a external site you do not have specify the port number in your URL. It works fine now.


这篇关于访问Web服务中的方法!!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆