What is wshttpbinding in case of WCF persession?
and what is the purpose of it?
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Hemant KumarRank #1,202 · 1.5K reputationPosted Nov 11, 2011, 1:18 AM EST
There's two things you need to consider here:
if your hosting in IIS (or WAS as part of IIS7), you cannot set a base address - the base address for your service will be the virtual directory where the
MyService.svcfile lives. You can still set relative addresses, thoughif you self-host, you typically will add base addresses in your config, so you can spare yourself having to spell out the entire address all the time (but you can - if you wish to do so).
So if you have your
MyService.svcinside a virtual directory calledMyAppon yourlocalhostmachine, and then use this config:then your "old-style" basicHttp service will be reachable at:
and your new wsHttp driven service will be reachable at:
You can name those relative addresses (anything after
.../MyApp/MyService.svc) anything you like - just make sure they're different from one another.Hosting in IIS --> location (virtual directory) of your *.svc file becomes your base address.
If you self-host your service inside a console app or a Windows NT Service, you get to set your base addresses yourself:
Now in this case, your "old-style" basicHttp service will be reachable at:
and your new wsHttp driven service will be reachable at:
You can define a base address for each of the transports, e.g. one for http://, one for net.tcp:// and so on.
And of course, if you really must, you can also define your complete addresses inside your
element for each of the service endpoints - this gives you total flexibility (but only works in self-hosting scenarios).Pravin MoreRank #1,419 · 1.2K reputationPosted Nov 11, 2011, 2:56 AM EST
WSHttpBinding
but silverlight doesnot support wshttpbinding.....
i have recently written article on Session in WCF and Silverlight you can refer it. Click Here.
Thank You,
Pravin.