tesicg
tesicg

Reputation: 4053

How to dynamically generate WSDL file and invoke the service?

I'm looking for an example in C# how to programmatically create WSDL file based on XSD files where WSDL file contains 1 main XSD file, which contains several import directives to subsequent XSD files. After that WCF service should be invoked based on created WSDL file. The service contract is known.

I've spent a lot of time on internet trying to find something but no luck so far.

Upvotes: 0

Views: 913

Answers (1)

Oscar
Oscar

Reputation: 13990

There is a program that comes with .net sdk called wsdl.exe You could invoke this program using the methods of the Process class.

See this:

http://msdn.microsoft.com/es-es/library/e8zac0ca.aspx

And this:

http://msdn.microsoft.com/en-us/library/7h3ystb6(v=vs.100).aspx

Upvotes: 1

Related Questions