开发者

wcf and session asmx rewrite with Silverlight

I have a web service that uses Session. I want to rewrite it as an WCF that can be hosted outside IIS.

What is the best way to replace session using WCF that wont tie me to IIS in my rewrite?

At first I was happy because of wsHttpBinding. Then I read that Silverlight can not use thi开发者_运维技巧s and I was sad.

How can this be accomplished.


Badly. I think Silverlight doesn't support any http based binding which would allow you creating stateful WCF service. You can make stateful WCF service with net.tcp binding which is supported in Silverlight 4.

Anyway WCF and session doesn't work in the same way as asmx and http session. You will have to handle a lot of additional complexities and your session storage will be either a service instance itself or you will have to write custom InstanceContext extension.

You can use WCF with old http session (like in asmx) but I'm not sure if this works outside of IIS. Using WCF with http session means degrading WCF back to asmx.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜