Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2008/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将HTTP GET方法添加到C#web服务_C#_Visual Studio 2008_Web Services_Http Get - Fatal编程技术网

将HTTP GET方法添加到C#web服务

将HTTP GET方法添加到C#web服务,c#,visual-studio-2008,web-services,http-get,C#,Visual Studio 2008,Web Services,Http Get,我想通过HTTP GET访问我的一个web服务方法,我以前见过这种方法,但我不知道如何在VS2008 web服务项目上允许这种访问协议 我想您必须更改web.config文件,但不确定要更改什么 有人知道吗?在您的Web.config中: <configuration> <system.web> <webServices> <protocols> <add nam

我想通过HTTP GET访问我的一个web服务方法,我以前见过这种方法,但我不知道如何在VS2008 web服务项目上允许这种访问协议

我想您必须更改web.config文件,但不确定要更改什么

有人知道吗?

在您的Web.config中:

<configuration>
    <system.web>
        <webServices>
            <protocols>
                <add name="HttpGet"/>
            </protocols>
        </webServices>
    </system.web>
</configuration>

在Web.config中:

<configuration>
    <system.web>
        <webServices>
            <protocols>
                <add name="HttpGet"/>
            </protocols>
        </webServices>
    </system.web>
</configuration>


你说的是ASP.NET web服务还是WCF服务?我想ASP.NET用户可能已经否认了他们的服务。微软现在称之为“遗产”。最好说“ASMX服务”。你说的是ASP.NET web服务还是WCF服务?我认为ASP.NET用户可能已经否认了他们的服务。微软现在称之为“遗产”。最好说“ASMX服务”。