x?WSDL
Microsoft (R) Web 服务描述语言实用工具
[Microsoft (R) .NET Framework,版本 1.1.4322.573]
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
正在写入文件“wawaProxy.cs”。
E:\me\web.net\wawa>
用记事本打开生成的wawaProxy.cs文件,观察一下,差不多如下
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Runtime Version: 1.1.4322.573
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------
//
// 此源代码由 wsdl, Version=1.1.4322.573 自动生成。
//
namespace wawa {
using System.Diagnostics;
using System.Xml.Serialization;
using System;
using System.Web.Services.Protocols;
using System.ComponentModel;
using System.Web.Services;
/// <remarks/>
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="wawa ServiceSoap", Namespace="wawa")]
public class wawaService : System.Web.Services.Protocols.SoapHttpClientProtocol {
/// <remarks/>
public wawaService() {
this.Url = "http://192.168.0.110/wawa/wawaService.asmx";
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("wawa/wawa_getDataSet", RequestNamespace="wawa", ResponseNamespace="wawa", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public System.Data.DataSet wawa_getDataSet() {
object[] results = this.Invoke("wawa_getDataSet", new object[0]);
return ((System.Data.DataSet)(results[0]));
}
/// <remarks/>
public System.IAsyncResult Beginwawa_getDataSet(System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("wawa_getDataSet", new object[0], callback, asyncState);
}
/// <remarks/>
public System.Data.DataSet Endwawa_getDataSet(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((System.Data.DataSet)(results[0]));
}
}
}
这时候我们要把wawaProxy.cs文件编译成动态链接库,用如下命令
csc /t:library /r:System.Web.Services.dll /out:wawaProxy.dll wawaProxy.cs
出现的提示类似于下面:
E:\me\web.net\wawa>csc /t:library /r:System.Web.Services.dll /out:wawaProxy.dll
wawaProxy.cs
Microsoft (R) Visual
Microsoft (R) Web 服务描述语言实用工具
[Microsoft (R) .NET Framework,版本 1.1.4322.573]
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
正在写入文件“wawaProxy.cs”。
E:\me\web.net\wawa>
用记事本打开生成的wawaProxy.cs文件,观察一下,差不多如下
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Runtime Version: 1.1.4322.573
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------
//
// 此源代码由 wsdl, Version=1.1.4322.573 自动生成。
//
namespace wawa {
using System.Diagnostics;
using System.Xml.Serialization;
using System;
using System.Web.Services.Protocols;
using System.ComponentModel;
using System.Web.Services;
/// <remarks/>
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="wawa ServiceSoap", Namespace="wawa")]
public class wawaService : System.Web.Services.Protocols.SoapHttpClientProtocol {
/// <remarks/>
public wawaService() {
this.Url = "http://192.168.0.110/wawa/wawaService.asmx";
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("wawa/wawa_getDataSet", RequestNamespace="wawa", ResponseNamespace="wawa", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public System.Data.DataSet wawa_getDataSet() {
object[] results = this.Invoke("wawa_getDataSet", new object[0]);
return ((System.Data.DataSet)(results[0]));
}
/// <remarks/>
public System.IAsyncResult Beginwawa_getDataSet(System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("wawa_getDataSet", new object[0], callback, asyncState);
}
/// <remarks/>
public System.Data.DataSet Endwawa_getDataSet(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((System.Data.DataSet)(results[0]));
}
}
}
这时候我们要把wawaProxy.cs文件编译成动态链接库,用如下命令
csc /t:library /r:System.Web.Services.dll /out:wawaProxy.dll wawaProxy.cs
出现的提示类似于下面:
E:\me\web.net\wawa>csc /t:library /r:System.Web.Services.dll /out:wawaProxy.dll
wawaProxy.cs
Microsoft (R) Visual
| 对此文章发表了评论 |
