c#下的webservcie 实现代码,很简单一看就清楚了是完成什么样的功能了
【程序编程相关:由2个和尚打水想到的---如何学习VB编】using system; 【推荐阅读:bugzilla 安装】
【扩展信息:MFC程序带参数运行】using system.collections;using system.componentmodel; using system.data; using system.diagnostics; using system.web; using system.web.services;namespace webhelloz5
{ /// <summary> /// service1 的摘要说明. /// </summary> public class service1 : system.web.services.webservice { public service1() { //codegen:该调用是 asp.net web 服务设计器所必需的 initializecomponent(); }#region component designer generated code
//web 服务设计器所必需的 private icontainer components = null; /// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容. /// </summary> private void initializecomponent() { }/// <summary>
/// 清理所有正在使用的资源. /// </summary> protected override void dispose( bool disposing ) { if(disposing && components != null) { components.dispose(); } base.dispose(disposing); } #endregion// web 服务示例
// helloworld() 示例服务返回字符串 hello world // 若要生成,请取消注释下列行,然后保存并生成项目 // 若要测试此 web 服务,请按 f5 键... 下一页