Web服务没有被调用

Web服务没有被调用

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

问题描述

你好eveyone.
我有一个调用webservice的问题.我制作了一个webservice并将其作为网站中的应用程序添加到IIS中.我必须在生产中托管的同一项目中调用它,问题是当我调用它时,它不起作用.我从我的本地PC上调用它,即它正常工作.即我在其中添加了Web服务作为应用程序的域就像Mydomain.com/MyService/service.asmx.在生产环境中无法正常工作.我将本地PC生成的App_Webreferences文件夹放入了该网站.有什么可能的错误提示,我收到此错误连接尝试失败,因为连接的用户在一段时间后未正确响应,或者已建立的连接失败,因为已连接的主机无法响应.任何想法请提供帮助.
这是我的web.config

Hello eveyone.
I have a problem calling webservice.I have made a webservice and added it in IIS as an application in a website.And i have to call it in same project hosted in production and problem is when i call it,it does not work.When i call it from my local PC it works.i.e My domain in which i have added webservice as an application is like Mydomain.com/MyService/service.asmx When i run it from my local PC it is being called but when i call it from production enviorment it does not work.I have plcaed the folder App_Webreferences generated from local PC into that website.What could be the probelem i get this error "Aconnection 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 ".Any ideas please help.
Here is my web.config

<defaultProxy>
        <!--<proxy autoDetect="True"/>-->
        <proxy usesystemdefault="True" proxyaddress="Mydomain.com/MyService/service.asmx" bypassonlocal="True"autoDetect="True"/>
</defaultProxy>
<appSettings>
<add key="Email_Web.WebService value="http://Mydomain.com/MyService/service.asmx"/>
</appSettings>

推荐答案


这篇关于Web服务没有被调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 21:38