[英]Adding service reference for Silverlight Application with WCF services
Im totally new to WCF. 我对WCF完全陌生。 Trying to create a Silverlight application with WCF services. 尝试使用WCF服务创建Silverlight应用程序。
Im not sure what address to fill in for adding the service reference for the client side. 我不确定要为客户端添加服务参考填写哪个地址。
Also, what do I need to specify in the Web config file in the server side? 另外,我需要在服务器端的Web配置文件中指定什么?
Thanks. 谢谢。
There are a few different kinds of WCF Services. 有几种不同的WCF服务。 WCF Services, WCF Data Services & WCF RIA Services. WCF服务,WCF数据服务和WCF RIA服务。 For a bit of background on these types/kinds check out this forum entry . 有关这些类型/种类的背景知识,请查看此论坛条目 。
If you are using just WCF Services, here's an intro and a sample and another sample that should get you going. 如果您仅使用WCF服务,则这里有一个介绍 和一个示例 ,另一个示例应该可以助您一臂之力。 :-) :-)
Here's a great overview from Shawn Wildermuth on creating a WCF Data service & consuming it in various ways. 这是Shawn Wildermuth的精彩概述,内容涉及创建WCF数据服务并以各种方式使用它。
WCF RIA Services are specifically built/optimized for Silverlight. WCF RIA服务是针对Silverlight专门构建/优化的。 If you are in control of the Service as well you might want to look into creating a RIA Service instead of just a WCF Data Service. 如果您也可以控制服务,则可能需要研究创建RIA服务,而不仅仅是WCF数据服务。 Here's an intro to RIA Services . 这是RIA Services的简介 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.