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

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
爱范儿
爱范儿
WordPress大学
WordPress大学
博客园 - 三生石上(FineUI控件)
J
Java Code Geeks
Vercel News
Vercel News
aimingoo的专栏
aimingoo的专栏
T
Tailwind CSS Blog
罗磊的独立博客
B
Blog
博客园_首页
A
About on SuperTechFans
有赞技术团队
有赞技术团队
V
V2EX
U
Unit 42
I
InfoQ
IT之家
IT之家
博客园 - 司徒正美
阮一峰的网络日志
阮一峰的网络日志
博客园 - 叶小钗
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Stack Overflow Blog
Stack Overflow Blog
The Cloudflare Blog
H
Help Net Security

博客园 - 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)  评论()    收藏  举报