WCF Metadata publishing customization

Hello there, I have two questions some may find quite easy to answer.

My service has several end-points (like http, net.tcp & net.pipe). When I try to read default WSDL provided by WCF (likehttp://mycomputer/myservice?wsdl), I get description of all endpoints in published WSDL.

Is it possible to hide/remove non-http endpoints from WSDL?

I mean, what is a deep reason to publish net.tcp & net.pipe endpoints via HTTP one?

Second question, regarding default web-service http page, provided by WCF for wsHttpBinding.

Like "You have created a service blah-blah, use svcutil.exe <address> to generate proxy, C# demo, VB demo".

Is it possible to customize this page? Is it possible to have something like in ASPX, http test page where user can enter some parameters and actually trigger webservice methods?

[969 byte] By [AlexeyLavnikov] at [2008-1-6]
# 1
Hi Alexey,

1) you can implement an IWsdlExportExtension and, by using the ExportEndpoint, change the wsdl. See this post on my italian blog (http://www.dotnetside.org/blogs/fabio/archive/2006/11/26/Turn-off-WS_2D00_Policy-in-WCF-_2E002E002E00_.aspx) The code is language-neutral Stick out tongue
2) I don't known if it is possible. I'm not sure, but you can implement your own HttpModule and modify the resulting page.

HTH
bye

FabioCozzolino at 2007-9-28 > top of Msdn Tech,Visual Studio Orcas,Windows Communication Foundation (Indigo)...
# 2

Regarding the second question, see

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1689726&SiteID=1

for info on how to make your own 'custom help page'. There are no magic knobs to make, e.g. the test page like in ASPX, you'd have to build that feature on your own.

BrianMcNamara-MSFT at 2007-9-28 > top of Msdn Tech,Visual Studio Orcas,Windows Communication Foundation (Indigo)...
# 3

<quote>There are no magic knobs to make, e.g. the test page like in ASPX, you'd have to build that feature on your own.</quote>

AFAIK, there is no built-in HTTP-GET/POST WebServices invokation as well.

Doesn't this mean, that WCF is downgrade of ASPX? People & software got used to these features, now comes new generation API (aka WCF) and some features are missing.

Help me find reasons to explain to my clients why WCF is better than ASPX and they better upgrade?

AlexeyLavnikov at 2007-9-28 > top of Msdn Tech,Visual Studio Orcas,Windows Communication Foundation (Indigo)...
# 4
There are indeed some features in ASPX that are not in WCF. But there are many many more new features in WCF (e.g. just read any overview docs like http://msdn2.microsoft.com/en-us/library/ms731082.aspx that talk about lots of WS/SOAP interop protocols, uniform programming model for talking over diverse transports, ...). If the get/post help page is a very important feature to the customer, then maybe they ought not upgrade, but there are lots of potentially good reasons to upgrade, just read our docs/press.
BrianMcNamara-MSFT at 2007-9-28 > top of Msdn Tech,Visual Studio Orcas,Windows Communication Foundation (Indigo)...
# 5

One of the great additions that WCF is adding in .NET Framework 3.5 is the WCF Test Client. It is a tool that will allow you test your service by specifying parameter values and invoking operations on your web service. We hope that this will be a useful tool for service developers. You can check it out in the latest Orcas release: http://www.microsoft.com/downloads/details.aspx?familyid=E6FD8663-8B77-4649-8D36-3830E18528FA&displaylang=en#Instructions

-- Dave

DaveCliffe-MSFT at 2007-9-28 > top of Msdn Tech,Visual Studio Orcas,Windows Communication Foundation (Indigo)...

Visual Studio Orcas

Site Classified