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

推荐订阅源

美团技术团队
D
DataBreaches.Net
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
D
Docker
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
Check Point Blog
腾讯CDC
Stack Overflow Blog
Stack Overflow Blog
V
Visual Studio Blog
IT之家
IT之家
月光博客
月光博客
U
Unit 42
K
Kaspersky official blog
T
Threatpost
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
GbyAI
GbyAI
P
Proofpoint News Feed
Last Week in AI
Last Week in AI
云风的 BLOG
云风的 BLOG
酷 壳 – CoolShell
酷 壳 – CoolShell
I
InfoQ
Engineering at Meta
Engineering at Meta
Recorded Future
Recorded Future
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Security @ Cisco Blogs
MyScale Blog
MyScale Blog
大猫的无限游戏
大猫的无限游戏
Security Archives - TechRepublic
Security Archives - TechRepublic
Webroot Blog
Webroot Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Hacker News - Newest:
Hacker News - Newest: "LLM"
S
Schneier on Security
S
Secure Thoughts
The Register - Security
The Register - Security
B
Blog RSS Feed
The Last Watchdog
The Last Watchdog
P
Palo Alto Networks Blog
爱范儿
爱范儿
B
Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
N
News and Events Feed by Topic
阮一峰的网络日志
阮一峰的网络日志
L
LINUX DO - 热门话题
C
Cisco Blogs
Spread Privacy
Spread Privacy
F
Full Disclosure
博客园 - 聂微东
T
The Blog of Author Tim Ferriss

博客园 - yiyisawa

岁月如梭 wcf client与webservice通信备注 wcf client与webservice通信(-)只修改配置文件而改变服务端 WPF界面 -----类似于visual studio中浮动窗体风格的界面(以下地址提供源码下载) BackgroundWorker学习一 vs 工具技巧手册 silverlight发布注意事项 silverlight beta2初步研究结论 Visual Studio 2005 Team Foundation Server (TFS)单服务器安装记 从今天起 乱弹 盲山有感 路边见闻 月夜奔跑 无题 童年拾忆 梦想高歌 一个用Regex的完成sql语句中字段替换的demo 《勇敢抉择》摘录一
将wcf 以webservice的方式调用
yiyisawa · 2008-12-26 · via 博客园 - yiyisawa

问题:a公司使用wcf 发布服务(.net Framework 3.0 or 3.5),b公司需要使用a公司发布的服务 ,但b公司目前阶段只使用.net Framework2.0(.net Framework 2.0不支持wcf),如果要调用a公司wcf 服务,那怎么办呢?

一、先上wcf 代码(这里懒得写了,借用microsoft公司发布的wcf  samples):

Code

配置文件:

Code

运行,记录服务地址。

二、使用wsdl工具将wcf service生成asp.net webservice方式。

start --->运行--->cmd --->cd C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin  回车。

输入wsdl 服务地址。例(wsdl http://localhost:8571/Service1.svc )便生成相应的类似asp.net webservice代理类的文件。文件地址亦在上面bin中。

新建Console application (net Framework 2.0),添加刚刚生成的代理类。调用:

调用代码:

Code

 配置文件:

Code

运行,即可成功调用。

项目完整代码。https://files.cnblogs.com/yiyisawa/wcfclienttowebservice.rar

(完)