Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WCF: how to generate a single WSDL document, without WSDL:import?

Tags:

I'm troubling into an issue... I'm trying to find a way to generate a single wsdl document from my WCF service, i.e. without any link to external documents. I've used FlatWsdl to remove all xsd:import links, bou my generated wsdl still contains a link to an external wsdl document via a wsdl:import declaration:

<wsdl:import namespace="http://myurl/mynamespace"                location="http://myserver/myservice.svc?wsdl=wsdl0"/>   

This document actually contains all inlined xsd schemas, so... there's a way to inline also this external wsdl document, in order to have a single wsdl?

Thanks a lot for any kind of help.

like image 354
D_Guidi Avatar asked Jun 12 '09 06:06

D_Guidi


People also ask

How is a WSDL generated?

A Web Services Description Language (WSDL) document specifies the interface to a web service, and enables a web service client to start it. A WSDL document that is generated from a message model defines web service requests and responses in terms of the messages that you have defined in that message model.

How do I create a WSDL from a web service?

Generating a WSDL From a Web Service ClassOn the Project Explorer or Navigator tab, right-click the web service class and select Web Services > Generate WSDL.


1 Answers

You can now do this natively in .net 4.5 (beta). There is an option (?singleWsdl instead of ?wsdl) for telling the service to output everything in a single wsdl document. More info on the new stuff here: http://msdn.microsoft.com/en-us/library/dd456789(v=vs.110).aspx

like image 172
Irwin Avatar answered Oct 05 '22 03:10

Irwin