开发者

WCF Rest Service

I am developing rest wcf service using linq to SQL. I am very new to wcf 开发者_JAVA百科services. The problem I am facing is my web service output xml sorts my tags in ascending order and I don't want that can anybody give me some suggestions why do the web service sorts the tags in alphabetical order?


Serializing members in alphabetical order is default behavior of DataContractSerializer. If you want different order you must set Order in DataMember attribute for every property.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜