Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Web Service problem
5 replies. Latest Post by Yi-Lun Luo - MSFT on September 10, 2008.
(0)
haagel
Member
97 points
98 Posts
09-09-2008 10:59 AM |
I'm trying to use a webservice, but I get an error when I try to compile my Silverlight project:
"The type or namespace name 'schema' could not be found (are you missing a using directive or an assembly reference?)"
If I understand it right (please correct me otherwise) Silverlight does not support DataSet.The web service has several methods, some of which returns a DataSet. I do NOT try to call these methods, but maybe that is still the problem?
Kbalz
213 points
185 Posts
09-09-2008 11:05 AM |
To rule out those webmethods, comment them out then try to recompile the service. I think they should still compile uncommented, but try that to start.
09-09-2008 11:10 AM |
Kbalz:To rule out those webmethods, comment them out then try to recompile the service. I think they should still compile uncommented, but try that to start.
I'm afraid I can't do that since the web service is not mine. I'm just using it...
09-09-2008 11:13 AM |
Do you know if the webservice is basicHttpBinding and not wsHttpBinding
ccoombs
Contributor
5018 points
743 Posts
09-09-2008 11:57 AM |
Even if you don't call the methods, your service reference will still try to autogen the (uncompilable) code to use them. You might be able to get away with manually editing the necessary files, but it would take some work, and each time you had to update the reference you'd have to re-edit the same files.
Hopefully someone here is able to tell you otherwise, but I don't think you'll be able to use the service directly.
Yi-Lun L...
All-Star
25052 points
2,747 Posts
09-10-2008 11:59 PM |
Hello, for a list of supported web service protocols, please refer to http://msdn.microsoft.com/en-us/library/cc197959(VS.95).aspx. Basically, only SOAP 1.1 is supported, and the web service must compromise WS-I Basic Profile 1.0, and none of the WS-* protocols such as WS-Security is supported. For example, if an ASMX or WCF returns a DataSet, the generated WSDL will NOT compromise WS-I Basic Profile, and thus cannot be used in Silverlight, Flex, Java, PHP, or any other non-desktop .NET platforms.