通过WCF发送xsd日期 [英] Sending xsd Date over WCF
本文介绍了通过WCF发送xsd日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们目前在我们的WCF合约中使用DateTime。这将导致数据以XSD DateTime发送。
我们要求在发送到通过XSD日期而不是DateTime发送的Java系统时。 / p>
如何做到这一点?
解决方案
我这个 CodeProject 项目,在那里他们写了一个WcfDate类封装(de)序列化从 xsd:date
对象。
We currently use DateTime in our WCF contracts. This results in data being sent over as XSD DateTime.
We have a requirement that when sending to a Java system that we send over a XSD Date and not a DateTime.
How can this be done?
解决方案
First hit on Google shows me this CodeProject project, where they've written a WcfDate class that encapsulates (de)serializing from and to a xsd:date
object.
这篇关于通过WCF发送xsd日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文