public string HelloWorld(MySoapHeader my_soap) { object[] results = this.Invoke("HelloWorld", new object[] { my_soap }); return((string)(results[0])); }
/// <remarks/> public void HelloWorldAsync(MySoapHeader my_soap, object userState) { if ((this.HelloWorldOperationCompleted == null)) { this.HelloWorldOperationCompleted = new System.Threading.SendOrPostCallback(this.OnHelloWorldOperationCompleted); } this.InvokeAsync("HelloWorld", new object[] { my_soap }, this.HelloWorldOperationCompleted, userState); }
static void Main(string[] args) { //var a = 2; var b = 0; //var ss = "" ?? "1"; //Console.WriteLine (ss); //try //{ // Console.WriteLine(a / b); //} //catch (Exception ex) //{ // //throw new ApplicationException("数据异常" + ex.Message); // Console.WriteLine("数据错误:" + ex.Message+ex.StackTrace); //} //Console.ReadKey();9 //var mySoap = new StudyProgram.WebService.MyWebService(); //HellowWord.MyWebService service = new HellowWord.MyWebService(); //var aa=service.HelloWorld(null); var arr = DateTime.Parse(null).ToString("yyyy-MM-dd"); test.MyWebService my_service = new test.MyWebService(); test.MySoapHeader my_soap = new test.MySoapHeader(); Console.WriteLine("请输入用户名"); var UserName = Console.ReadLine().Trim(); Console.WriteLine("请输入密码"); var PassWord = Console.ReadLine().Trim(); my_soap.Name = UserName; my_soap.Password = PassWord; var res = my_service.HelloWorld(my_soap); Console.WriteLine(res); Console.ReadKey(); }
/// <remarks/> public void HelloWorldAsync(MySoapHeader my_soap) { this.HelloWorldAsync(my_soap, null); }