开发者

Problem with WCF custom behavior used in the silverlight client

To pass the culture information from client to WCF service, I have created a custom behavior using the custom inspector. The inspector class implements IDispatchMessageInspector and the IClientMessageInspector.

My client is 开发者_如何转开发the silverlight application. And now I'm facing the problem with the IDispatchMessageInspector since it's not available in the System.ServiceModel.Dispatcher.dll is not available to add as an assembly reference to Silverlight 4 project.

Can someone help me out ? How to handle the custom behavior to send message from SILVERLIGHT to wcf. ?


The IClientMessageInspector needs to be implemented and used at the client (silverlight in this case) side whereas IDispatchMessageInspector needs to be used at the service side.

Following posts are really helpful:

Automatic Culture Flowing with WCF by using Custom Behaviour

Automate passing valuable information in WCF headers

Processing custom WCF header values at server-side

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜