simplesoapappservice.cs
来自「Visual C++.net编成指南一书的源代码」· CS 代码 · 共 42 行
CS
42 行
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Runtime Version: 1.0.2806.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------
namespace HttpListenerCSharpClient.localhost {
using System.Xml.Serialization;
using System;
using System.Web.Services.Protocols;
using System.Web.Services;
[System.Web.Services.WebServiceBindingAttribute(Name="SimpleSoapAppServiceSoap", Namespace="urn:SimpleSoapAppService")]
public class SimpleSoapAppService : System.Web.Services.Protocols.SoapHttpClientProtocol {
public SimpleSoapAppService() {
this.Url = "http://localhost:333/Invoke?Handler=Default";
}
[System.Web.Services.Protocols.SoapRpcMethodAttribute("#HelloWorld", RequestNamespace="urn:SimpleSoapAppService", ResponseNamespace="urn:SimpleSoapAppService")]
[return: System.Xml.Serialization.SoapElementAttribute("return")]
public string HelloWorld(string bstrInput) {
object[] results = this.Invoke("HelloWorld", new object[] {bstrInput});
return ((string)(results[0]));
}
public System.IAsyncResult BeginHelloWorld(string bstrInput, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("HelloWorld", new object[] {bstrInput}, callback, asyncState);
}
public string EndHelloWorld(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?