首先添加web引用,即将webservice的wsdl引用
using System;
using System.Collections.Generic;using System.Linq;
using System.Text;
namespace test05
{
class Program
{
static void Main(string[] args)
{
xmw.SunLife3 s = new xmw.SunLife3();//xmw是命名空间 SunLife3是class
Console.WriteLine(s.excute("101", "aaaaaaaa"));
}
}
}
本文介绍如何在C#程序中添加并使用web引用,通过实例展示了如何引用webservice并调用其方法。
3630

被折叠的 条评论
为什么被折叠?



