Does WCF support WS-Security with SOAP 1.1?

前端 未结 2 1989
梦谈多话
梦谈多话 2020-12-03 08:42

I need to call some 3rd Web services that require WS-Security. I created a WCF endpoint with the following configuration:


  <         


        
2条回答
  •  猫巷女王i
    2020-12-03 09:05

    In order to use WS-Addressing (wsHttpBinding), but with SOAP 1.1 (SOAP 1.2 being the default), you need to define a custom WCF binding (e.g. in config) and use that:

    
       
          
             
             
          
       
    
    

    and then in your endpoint definition, use:

    
    

    Of course, you can extend the custom binding defined above with additional properties, e.g. or others.

    For more very detailed, very useful info on WCF bindings and how to "compose" your own custom bindings in config, read this excellent MSDN article Service Station: WCF Bindings In Depth by Aaron Skonnard.

提交回复
热议问题