I've already posted this topic several times, but no luck. I'll try again.
We have a project where we should create WCF service based on XSD files we get from our client and fixed service contract that looks as following:
Message CustomAction(Message inputMessage);
So, the operation will be the same, but XSD files will change.
All that we should do programmatically.
Here are my questions:
1) How to programmatically create WSDL file from XSD files knowing how service would look like (see above)?
2) How to use WSDL file generated in 1) to create WCF service programmatically?
3) How to read the body of input/request and output/response SOAP messages from the service above?
There is more than 1 approach and I don't know which one is right. I'm not close to solution.
There's an approach to write WSDL file programmatically using ServiceDescription class, but it's complicated, how to do it correctly, what to do after creation of WSDL file, etc.
There's an approach to use IXmlSerializable interface, but I don't need to create C# types because I only have XSD files. Everything should be done programmatically.
I suppose I should use raw messages, but how to connect that approach with existing XSD files from which I should create WSDL file and how to pass that WSDL file to... where?
Thank you in advance.
Regards,
Goran