Administrator

Administrator

  • Tech Writer
  • 2.2k
  • 1.5m

Retrieving XmlSchema from webservice + importing in dataset

Mar 11 2003 9:04 AM
How can a client-program retrieve a XmlSchema from a webservice? The webservice succesfully returns the XmlSchema from a dataset, but I can't seem to get at it from my client program. (in that standard asmx-file I can click "Invoke", and it opens correctly). The error goes as follows: XmlDataDocument xdocument= cusCustomer.WBICXmlSchema(); GIVES: c:\inetpub\wwwroot\thijs2\WebForm1.aspx.cs(32): Cannot implicitly convert type 'SymPageClient.localhost.XmlSchema' to 'System.Xml.XmlDataDocument' On the other hand, I don't see a way to use this XmlSchema in a dataset. The XmlSchema contains all data formats and so that should be used, and I thought it would be possible to import it using the ReadXmlSchema() function. But this doesn't allow an XmlSchema for parameter... I really think this should be possible, does anybody please have an idea?