开发者

how to control help file generation for WCF 4 REST Service?

开发者 https://www.devze.com 2023-03-30 15:14 出处:网络
I have written a WCF Rest Service that uses XmlSerializer. I have also implemented IXmlSerializable on the type I am accepting as a service parameter.

I have written a WCF Rest Service that uses XmlSerializer. I have also implemented IXmlSerializable on the type I am accepting as a service parameter. The serialization works great. However the help files that WCF generates by default do not work. when i navigate to : myservic开发者_StackOverflowe/help i only see this:

Could not generate schema document.

So is it possible to control what gets generated ? Perhaps there is something I'm missing to make the help files generate correctly.


I do not know how to control help files generation. Most likely, there is no way. But you can disable default help files generation in configs and map to /help paths your custom logic. It may use some reflection or be hard-coded, but you will get what you want - control over help pages generation

0

精彩评论

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