开发者

.NET - Is there the attribute [DataContract] for a Web Service?

开发者 https://www.devze.com 2023-01-11 23:06 出处:网络
note that I am not u开发者_Go百科sing WCF, i\'m only using ASP.NET web service. Anything similar?

note that I am not u开发者_Go百科sing WCF, i'm only using ASP.NET web service. Anything similar? Thank you.


[DataContract] is a feature of WCF, so no, the concept doesn't exist in standard ASMX webservices. You're limited to passing proxy objects back and forth, which can get messy.

I've asked an equivalent question here before, and basically learned that you need WCF to do that kind of thing.

0

精彩评论

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