WCF 服务(与 RIA)
我是 WCF 和 WCF 派生服务的新手。
我正在使用 VS 2010、silverlight 4、ria services 4。
最近,我使用端点(使用 wsHttpBinging)创建了普通的 WCF REST 服务(无 RIA、无 SOAP):
<endpoint address="" behaviorConfiguration="wsBehavior" binding="wsHttpBinding" bindingConfiguration="wsbinding" contract="WcfService1.IService1"/>
<behaviors>
<endpointBehaviors>
<behavior name="wsBehavior">
<webHttp/>
</behavior>.........
我从 silverlight 4 客户端使用此服务,一切正常。
然后,我使用使用 RIA 服务的“silverlight 业务应用程序”模板创建了新项目。现在 web.config 使用 DomainServices,当我添加 wsHttpBind 端点时,我不起作用。我知道我没有正确执行此操作,并且到目前为止我无法在网上找到任何帮助。
我想做的是使用 RIA(无 SOAP)创建一个 RESTful WCF 应用程序,并且我可以从 silverlight 4 客户端使用它。由于某种原因我无法使服务正常工作。
I am new to WCF and WCF derived services.
I am using VS 2010, silverlight 4, ria services 4.
Recently I created plain WCF REST services (no RIA, no SOAP) with my endpoint (using wsHttpBinging):
<endpoint address="" behaviorConfiguration="wsBehavior" binding="wsHttpBinding" bindingConfiguration="wsbinding" contract="WcfService1.IService1"/>
<behaviors>
<endpointBehaviors>
<behavior name="wsBehavior">
<webHttp/>
</behavior>.........
I use this service from silverlight 4 client and everything works fine.
THEN, i created new project using "silverlight Business application" template which used RIA service. Now the web.config uses DomainServices and when i add wsHttpBind endpoint I doesnot work. I know i am not doing this correctly and i cant find any help online so far.
What I am trying to do is creat a RESTful WCF application with RIA (no SOAP) and that i can use from silverlight 4 client. For some reason i cannot get the service working.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为 silverlight 不支持 wsHttpBinding。
I don't think silverlight supports wsHttpBinding.