I have created a WCF service bus for my on-premise WCF service, now i want to access the service in my windows phone application but Microsoft.ServiceBus is not available for silverlight on windows phone . Is there any way on how I can access my WCF service in windows phone silverlight application ?
Thanks In Advance
Depending on which feature set you use in Service Bus, it can be easy or difficult to make it work with Windows Phone.
If you use Basic/WebHttpRelayBinding and set RelayClientAuthenticationType to None, the service is essentially a normal WCF service. The only difference is the address is a Service Bus address. You can access the BasicHttpRelayBinding service using BasicHttpBinding on the Windows Phone client, and you can access the WebHttpRelayBinding service using WebClient/HttpWebRequest on the Windows Phone client, just like accessing normal WCF services.
If you set RelayClientAuthenticationType to RelayAccessToken (the default configuration), it will be very difficult to consume the service in Windows Phone. If you need to authenticate users, it is recommended to use custom authentication instead of the default ACS authentication.
If you use a binding that relies on the sb protocol, you cannot use it in Windows Phone. Windows Phone does not support custom protocols.
- 已标记为答案 Arwind - MSFTModerator 2012年6月14日 11:34