I am attempting to parse WSDL, along the lines of the example given here.
The author notes, in the comments, that the example is not capable of drilling down into complex data types.
And in fact, when I run the example, it does not appear to even handle simple data types.
I have poked around in System.Web.Services.Description.ServiceDescription class, which is used in the example, but cannot find any actual parameter or return type information at run-time. I gather that I may need to do some manual parsing of an xsd file?
Both google and stackoverflow appear to lack a complete example of how to drill down into complex types programmatically, so… how should I do this?
This is not pretty – but it gets the job done (hopefully ;). I based this code partly on the link you provided, and then added some recursion to parse out the different types included in the schema, as well as the inner elements and their data types. This definitely does not take into account all possiblities in an XML schema, but I think it exemplifies enough that you could add complexity to this if neccessary.
I hope this helps!!!!