2010-05-03 223 views
0

我是WCF和WCF派生服务的新手。WCF服务(与RIA)

我使用VS 2010,Silverlight 4中,RIA服务4

最近,我创建了纯WCF REST服务(不RIA,没有SOAP)与我的终点(使用wsHttpBinging):

<endpoint address="" behaviorConfiguration="wsBehavior" binding="wsHttpBinding"    bindingConfiguration="wsbinding" contract="WcfService1.IService1"/> 

<behaviors> 
<endpointBehaviors> 
<behavior name="wsBehavior"> 
    <webHttp/> 
</behavior>......... 

我使用Silverlight 4客户端的这项服务,一切正常。

然后,我使用使用RIA服务的“silverlight Business application”模板创建了新项目。现在web.config使用DomainServices,当我添加wsHttpBind端点时,我无法工作。我知道我没有做到这一点,我无法找到任何帮助到目前为止。

我想要做的是用RIA(无SOAP)创建一个RESTful WCF应用程序,并且我可以使用Silverlight 4客户端。出于某种原因,我无法得到服务的工作。

回答

0

我不认为silverlight支持wsHttpBinding。

+0

这就是我读过的,但它在WCf/.net 4中工作/现在我想获得正确的web.config与RIA – netlogging 2010-05-04 14:13:31

+0

一起工作首先这应该是Comment.And BTW wsHttpBinding用于创建Json响应并创建EndPoint另外!!!! – 2013-04-15 09:05:13