WCF 服务(与 RIA)

发布于 2024-08-31 07:39:13 字数 750 浏览 1 评论 0原文

我是 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦中楼上月下 2024-09-07 07:39:13

我认为 silverlight 不支持 wsHttpBinding。

I don't think silverlight supports wsHttpBinding.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文