How can I programmatically create this custom binding?

后端 未结 3 1019
情深已故
情深已故 2020-12-23 15:21

We\'ve got to access a web service that uses soap11... no problem I\'ll just set the binding as:

BasicHttpBinding wsBinding = new BasicHttpBinding(BasicHttpS         


        
3条回答
  •  感情败类
    2020-12-23 15:35

    @D. Forrest already found the solution, but a simple way to see what objects are involved for a given WCF configuration is to call .Endpoint.Binding.CreateBindingElements() on the client proxy you are using. You can the dump the object tree of each item in the list that is returned and see how the binding is configured.

提交回复
热议问题