Silverlight+WCF exception: Expecting application/soap+xml, received text/xml

前端 未结 4 939
遥遥无期
遥遥无期 2021-02-13 18:07

I have a Silverlight application in which I would like to call a WCF service. When calling the service I receive the following response from the server:

4条回答
  •  故里飘歌
    2021-02-13 18:56

    Well, you could try using the "Silverlight-enabled WCF Service" template in VS2008, and comparing the differences? I expect that you need to use the basicHttpBinding and are using something more exotic.

    For info, here is the web.config section for a default Silverlight/WCF service:

     
      
       
        
         
         
        
       
      
      
      
       
        
        
       
      
     
    

提交回复
热议问题