开发者

How to Program With Exchange Server 2007 (EWS) in Silverlight?

开发者 https://www.devze.com 2023-04-11 06:56 出处:网络
I want to call EWS in Silverlight, However 开发者_开发问答I have no idea about how to call a WSDL web services in silverlight.

I want to call EWS in Silverlight, However 开发者_开发问答I have no idea about how to call a WSDL web services in silverlight.

In a web or windows application, we can easy begin with ExchangeServiceBinding. However in Silverlight application, how could i do?


Silverlight does not allow cross domain service calls which means that you probably will not be able to call EWS from your Silerlight application because they are hosted on different domains.

You might get it to work by placing a clientaccesspolicy.xml file on your Exchange Server but a better option may be to create your own WCF services hosted on the same domain as the Silverlight application. Your Silverlight application will then call the WCF services which will call EWS in turn.

The WCF services will be a facade wrapping the calls to EWS and you will not have to call EWS directly from Silverlight. It does require a bit of work to create the WCF services but you only have to wrap the part of EWS API that you need.

0

精彩评论

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