我写了一个简单的WebService,在本机上测试没有问题。
但网络中其它机器访问我的WebService时,提示“该调用只能用于本地测试”
请问应该怎样做呢?谢谢!
---------------------------------------------------------------
修改web.config配置文件
但网络中其它机器访问我的WebService时,提示“该调用只能用于本地测试”
请问应该怎样做呢?谢谢!
---------------------------------------------------------------
修改web.config配置文件
1
<System.Web>
2
<webServices>
3
<protocols>
4
<add name="HttpGet"/>
5
<add name="HttpPost"/>
6
</protocols>
7
</webServices>
8
</System.Web>
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
2
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
3
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
4
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
5
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
6
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
7
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
8
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)