Wcf Extract wsdl from WCF Service with Flattened WSDL

I have a wcf web service and I need to provide the client with wsdl files.

I used to use svcutil on .dll, and everything was fine.

However, I recently implemented a factory for the Flaten wsdl file (re: http://wcfextras.codeplex.com/ ).

My questions are: is there anyway to use svcutil on .svc to extract Flattened.WSDL files, or maybe somehow get into a web service when running on a local web server to extract .WSDL files?

As far as I know, if I were to go to my local web developers server ( http: // localhost: 2916 / Service.svc? Wsdl ), and if I had to look at the source and save it as .wsdl, that is wrong and will not provide all the necessary information.

Note: The following describes how the factory is used in the .svc ....

<% @ServiceHost Factory="CompanyName.ServiceModel.Extensions.Description.FlatWsdlServiceHostFactory" language=c# Service="CompanyName.WebServices.Service"%> 

Thanks Steven

+3
source share
1 answer

Yes, you can still use svcutilto extract the WSDL from your service, even if you have an extension installed that will smooth out the WSDL.

To download a metadata document from your running service, use the following command:

svcutil /t:metadata http://service/metadataEndpoint

URL- , , . , "mexHttpBinding" "mexTcpBinding" "IMetadataExchange".

, , .

+6

Source: https://habr.com/ru/post/1720707/


All Articles