Sending xsd Date over WCF

扶醉桌前 提交于 2020-01-17 14:45:09

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/8150109/sending-xsd-date-over-wcf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!