您现在的位置: 无忧电子商务网 >> 信息学院 >> 程序开发 >> asp >> 正文

蛙蛙推荐: 用web服务传递Dataset的一个简单例子

作者:作者:未…    信息学院来源:网络收集    点击数:    更新时间:2006-8-27 我要参与讨论

  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

上一页  [1] [2] [3] [4] 下一页

在google里搜索更多蛙蛙推荐: 用web服务传递Dataset的一个简单例子

Google
Web www.51ec.org
【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
我来说两句 对此文章发表了评论
  昵 称: *必填    ·注册用户·
  评 分: 1分 2分 3分 4分 5分     严禁发表危害国家安全、政治、黄色淫秽等内容的评论,用户需对自己在使用本网站服务过程中的行为承担法律责任。本站管理员有权保留或删除评论内容,评论内容只代表机友个人观点,与本网站立场无关。  
评 论
内 容

 
评论列表 (最新 评论仅限网友观点!)

供求信息




| 设为首页 | 加入收藏 | 关于我们 | 广告服务 | 联系方式 | 友情链接 | 版权申明