开发者

How to replace standard wcf help page with a custom one?

开发者 https://www.devze.com 2023-01-13 16:37 出处:网络
I have created a wcf service (.net 3.5, it uses wsHttpBinding and hosts on IIS), and when i\'m trying to hit the service from the browser i see standard help page \'you have created a service\'. I don

I have created a wcf service (.net 3.5, it uses wsHttpBinding and hosts on IIS), and when i'm trying to hit the service from the browser i see standard help page 'you have created a service'. I don't want to see it. Instead of it i would like to see some custom page. I tried to use httpHelpPageUrl property, but with no luck. It just doesn't show the specified url.

This is a part of web.config:

<se开发者_Python百科rviceMetadata httpGetEnabled="false"/>
<serviceDebug includeExceptionDetailInFaults="false" httpHelpPageEnabled="false" httpsHelpPageEnabled="false"/>

How could i replace this standard service help page with a custom one?

Thanks


Create a static page called default.htm (or a web form called default.aspx) in the same virtual directory as the service, and make sure it's configured to be the default page. I know it's not quite what you are looking for, but it would be just as useful to the consumers of your service.

0

精彩评论

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