Web services (引用别人的webservice)
来源:互联网 发布:qq飞车迈凯伦数据 编辑:程序博客网 时间:2024/06/04 00:56
右击引用,添加服务引用 弹出一个框把您所需要的链接填进去 点击确定。例如在前台有个button按钮,点击按钮后的代码: protected void Button1_Click(object sender, EventArgs e)
{
ServiceReference1.RandomFontsWebServiceSoapClient rand = new ServiceReference1.RandomFontsWebServiceSoapClient();//实例化
string [] r= rand.getChineseFonts(4);
for (int i = 0; i < r.Length;i++ )
{
Response.Write(r[i].ToString());
}
}
这时候运行你会发现报错了 如图:
这时候在wen.config里面
把相应的代码注释掉就ok了!!
- Web services (引用别人的webservice)
- [WEBSERVICE]web services 创建代理类库的方法
- ystem.Web.Script.Services.ScriptService 引用的问题
- 引用别人的总结
- 使用Web Services Explorer测试Webservice服务
- VS2010 webservice 添加web引用
- [System.Web.Script.Services.ScriptService]引用问题
- Web Services的魅力
- web services的基本概念
- web services的基本原理
- Web Services的身份验证
- Web Services的身份验证
- Web Services的基本原理
- web services的基本原理
- Web Services的基本原理
- 常用的web services
- Web Services的基本原理
- Web Services的身份验证
- 在一个Activity中关闭所有Activity
- 打造优秀Web设计的10项原则
- 在 eclipse项目中导入javax....包时出错原因
- 1. 谨慎行事
- Java同步机制总结
- Web services (引用别人的webservice)
- Bison-Flex 笔记
- 枚举
- 【xinfanqie】笔者支招:电脑连续开机几次才能启动的原因与解决办法
- 【xpghost】烟雨蒙蒙win7主题
- hdu1305之字典树
- MFC中数据库操作
- struts1不能执行action里方法(没有正确覆写action里的方法)
- 理解C语言声明的优先级规则