Skip to main content

Microsoft Silverlight

Answered Question Web Service problemRSS Feed

(0)

haagel
haagel

Member

Member

97 points

98 Posts

Web Service problem

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
Kbalz

Member

Member

213 points

185 Posts

Re: Web Service problem

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.

haagel
haagel

Member

Member

97 points

98 Posts

Re: Web Service problem

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...
 

Kbalz
Kbalz

Member

Member

213 points

185 Posts

Re: Web Service problem

Do you know if the webservice is basicHttpBinding and not wsHttpBinding

ccoombs
ccoombs

Contributor

Contributor

5174 points

761 Posts

Re: Web Service problem

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 Luo - MSFT
Yi-Lun L...

All-Star

All-Star

25052 points

2,747 Posts

Answered Question

Re: Web Service problem

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.

shanaolanxing - I'll transfer to the Windows Azure team, and will have limited time to participate in the Silverlight forum. Apologize if I don't answer your questions in time.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities