惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
大猫的无限游戏
大猫的无限游戏
J
Java Code Geeks
MongoDB | Blog
MongoDB | Blog
Martin Fowler
Martin Fowler
GbyAI
GbyAI
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
B
Blog
U
Unit 42
B
Blog RSS Feed
D
DataBreaches.Net
Google DeepMind News
Google DeepMind News
人人都是产品经理
人人都是产品经理
腾讯CDC
量子位
酷 壳 – CoolShell
酷 壳 – CoolShell
V
Visual Studio Blog
博客园 - 聂微东
MyScale Blog
MyScale Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 三生石上(FineUI控件)
Engineering at Meta
Engineering at Meta

博客园 - Arthur_wuancheng(大步牛)

练手之作:易元威客任务发布系统(2) 练手之作:易元威客任务发布系统(1) 人生一世 草木一秋 如何进行高效的项目管理?(转) 项目管理的一点总结 极限编程法一点思考 WEB Service 下实现大数据量的传输 (转) 项目经验(转) Atlas 学习笔记: ajax 改进 by Atlas ajax for .net in vs2003 like gmail ^_^ 存储过程分页,以及动态sql(Sql server) C# 2.0 New Feature(1) ref type & out type Duwamish架构分析篇 (转) 程序编码应保持良好的规范(C#)(转) 也谈代码规范 (转) 如何用正确的方法来写出质量好的软件的75条体会 [转] How to Write to Database by EnterPriseLibrary2005 Logging Application Block(项目心得) 自己正在做电信的互联星空项目,里面用到的xml
WebService Enhancements 2.0 Learning Note
Arthur_wuancheng(大步牛) · 2005-08-02 · via 博客园 - Arthur_wuancheng(大步牛)

using Microsoft.Web.Services2;
using Microsoft.Web.Services2.Dime;


5.请在web.config加入


6. 现在可以写具体功能的实现了

附件的传递其实是通过附加在SoapContext myContext上
myContext.Attachments.Add( dimeFile );这句就是附件的附加,放在ReponseSoap的上下文中

7.调用此webservice.   调用的时候和一般webservice还是有些区别的
首先要在客户端的webservice中引用Microsoft.Web.Services2,和服务器一样改web.config,这些步骤都一样

8.重要,你的找到生成的代理类,并在其中继承Microsoft.Web.Services2.WebServicesClientProtocol而不是System.Web.Services.Protocols.SoapHttpClientProtocol

 public class Service1 : Microsoft.Web.Services2.WebServicesClientProtocol {

9.现在你就可以调用了

posted on 2005-08-02 17:56  Arthur_wuancheng(大步牛)  阅读(2791)  评论()    收藏  举报