如何从XSD生成WCF服务合同 [英] How do I Generate WCF Service Contracts from XSD

查看:67
本文介绍了如何从XSD生成WCF服务合同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个以前用来编写JAVA服务的XSD。现在需要重新使用此XSD来生成WCF操作合同和数据合同。有3个XSDs。主XSD有其他两个的参考。有人可以建议任何可以从XSD生成WCF服务合同的工具吗?手动从XSD编写代码是不可行的。

I have a XSD which was used previously to write JAVA services. This XSD now needs to be re-used to generate WCF operation contracts and data contracts. There are 3 XSDs infact. The main XSD is having the reference of other two. Can someone suggest any tool which can generate the WCF service Contracts from the XSD? Manually writing codes from the XSD is not feasible.

推荐答案

考虑使用XmlSerializer。

请阅读使用XML Schema在.NET Framework中生成代码 [ ^ ]了解更多信息。
Consider to use XmlSerializer.
Please read Code Generation in the .NET Framework Using XML Schema[^] for more information.


这篇关于如何从XSD生成WCF服务合同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆