I have authored a simple calculator Web 开发者_如何学编程service using visual studio 2010. I need to specify policy using WS-Policy language (which I need to append with the WSDL document generated for the service).
How can I do that? Should I need WSE 3.0 Settings tool installed for that in VS 2010? Does VS 2010 support it?
I have tried using XMLSerializer but achieved no success. I badly in need of suggestions regarding this problem.
Please help me in fixing this problem.
Why do you need to manually edit policy? In WCF that's not done directly; instead selecting your security policy is is accomplished indirectly by choosing a proper binding and configuring it correctly.
It's very likely that you'd probably be just fine with a properly configured WSHttp binding, but you can certainly use a custom binding if you need extra flexibility.
精彩评论