开发者

How to consume an existing WCF service from my Silverlight app?

开发者 https://www.devze.com 2023-01-15 06:45 出处:网络
Im porting an \"old\" silverlight 3 app that used WS* webservices to connect. These services have been changed and are now replaced by an WCF \"equivalent\". I cant seem to get my silverlight app to w

Im porting an "old" silverlight 3 app that used WS* webservices to connect. These services have been changed and are now replaced by an WCF "equivalent". I cant seem to get my silverlight app to work with the WCF service,开发者_开发技巧 I add a reference to the: http.....svc and create my client, but the clientConfiguration is empty. The silverlight app doesnt know the datatypes given in the WCF service... all this is working well in the WPF client also using them...

All i seem to get on one of my types from the WCF service is a public variable called "data"... anyone know what this is?

Sincerely,


WCF for silverlight support a subset of bindings for normal WCF. As the time of siverlight4, we support basic http binding, nettcp binding and pollingduplex binding. For nettcp binding, it has some port restriction and requires you setup some policy server. You can find more details on http://msdn.microsoft.com/en-us/library/cc896571(VS.95).aspx

HTH

0

精彩评论

暂无评论...
验证码 换一张
取 消