开发者

WCF Session without Credentials

开发者 https://www.devze.com 2023-01-03 09:42 出处:网络
Is it possible to configure a WCF service to use sessions, and also n开发者_如何学JAVAot to require the client to send any credentials?

Is it possible to configure a WCF service to use sessions, and also n开发者_如何学JAVAot to require the client to send any credentials?

If so, how should the bindings section of the service's App.config file look?


See http://msdn.microsoft.com/en-us/library/system.servicemodel.channels.reliablesessionbindingelement.aspx to establish a session using the WS-ReliableMessaging spec. I don't see why this should require authentication.

<customBinding>
  <binding name="BasicWithWSReliable">
     <reliableSession />
     <httpTransport authenticationScheme="Anonymous"/>
  </binding>
</customBinding>
0

精彩评论

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

关注公众号