为什么对于我的一些web服务,我会获得测试表单,这样我就可以看到生成的xml数据,而对于其他web服务,我会收到一条消息:The test form is only available for requests from the local machine.
这两次,我都是从客户端浏览器连接到web服务的网址,所有web服务都是用C#,.NET-3.5创建的。
发布于 2012-11-05 23:19:31
我在谷歌上搜索了"The test form is only available for requests from the local machine."
有很多结果,共识是将这些节点添加到web服务的web.config中。我还没有尝试过这个解决方案,但是您可以检查一下远程显示测试表单的web服务是否在web.config中包含这些节点。或者,您可以将其添加到提供此消息的web服务中,并查看测试表单是否开始远程显示。
<configuration>
<system.web>
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
</protocols>
</webServices>
</system.web>
</configuration>以下是一些搜索结果
https://stackoverflow.com/questions/13234819
复制相似问题