Getting the schema of a dataset from a webservice
I found the following in my Blogger Drafts folder from two-thousand-and-freaking-five. Since I had completely forgotten about this and never published it, I figured I'd do so now...
1/20/2005:
In a comment to : Evil = WebService DataSet; //Fix this, Gary McDonald mentions:
1/20/2005:
In a comment to : Evil = WebService DataSet; //Fix this, Gary McDonald mentions:
You are familiar with the auto-generated WSDL obtained by calling your ASMX with the ?wsdl request, so try ?schema=xxx where xxx is the name of the returned XSD.I wasn't aware of that. Cool.
For example, if I have an ASMX at http://www.tempuri.org/MyService.asmx and It has a Method named Foo that returns a typed dataset named Bar, I can get the schema from http://www.tempuri.org/MyService.asmx?schema=Bar
Labels: asp.net, howto, icantbelieveihaventdonethisbefore, random, webservice