阅读背景:

有没有办法从WCF REST方法返回不同的类型?

来源:互联网 

I am trying to write a web service to spec and it requires a different response body depending on whether the method completes successfully or not. I have tried creating two different DataContract classes, but how can I return them and have them serialized correctly? I am trying to write a web service to spec and




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: