简体   繁体   English

如何在WCF中使用消息契约编写程序?

[英]How to make a program using message contract in wcf?

I am very very new to WCF and I have been asked to write a WCF service that will use Message Contract to generate an xml file as well as to read the xml file via the cilent proxy? 我对WCF非常陌生,有人要求我编写一个WCF服务,该服务将使用Message Contract生成xml文件以及通过cilent代理读取xml文件?

I am unable to click thru though searched in net. 虽然无法在网上搜索,但我无法点击。

If anyone can tell me the concept as well as a simple program of wCF(specific to Message contract) will be of great help. 如果有人能告诉我这个概念以及简单的wCF程序(特定于Message contract)将大有帮助。

Thanks in advance 提前致谢

There's the MSDN WCF Developer Center which has everything from beginner's tutorials to articles and sample code. MSDN WCF开发人员中心提供了从初学者的教程到文章和示例代码的所有内容。

Also, I would recommend you have a look at the Pluralsight screen casts on WCF - it's an excellent series going from " Creating your first WCF service " and " Creating your first WCF client " all the way to rather advanced topics. 另外,我建议您查看WCF上的Pluralsight屏幕广播 -这是一个出色的系列,从“ 创建第一个WCF服务 ”和“ 创建第一个WCF客户端 ”一直到高级主题。 Aaron Skonnard very nicely explains everything in 10-15 minutes screencasts - highly recommended! 亚伦·斯科纳德(Aaron Skonnard)在10-15分钟的截屏视频中很好地解释了所有内容-强烈建议!

For Message contracts specifically, check out: 对于消息合同,请签出:

The question is: do you really need message contracts?? 问题是:您真的需要消息合同吗? Most of the time (> 90%), you don't - why do you want to use message contracts specifically?? 大多数时候(> 90%),您不会-为什么要专门使用消息合同? I would try to learn WCF without focussing too much on the message contracts, unless you have a very specific need for them. 我将尝试学习WCF,而不会过多地关注消息合同,除非您对它们有非常特定的需求。

Actually I did my first experiment on Message Contract from this site Difference between Data Contract and Message Contract in WCF . 实际上,我从WCF中的Data Contract和Message Contract之间的区别这个站点对Message Contract进行了第一个实验。 They have given a program in the down and with a bit of my wit (joking) I was able to get thru. 他们给出了一个程序,我的智慧(开玩笑)使我得以通过。

But many thanks to all of you who has helped me. 但是非常感谢帮助我的所有人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM