Альтернатива:
дал EndpointAddress, как это
EndpointAddress address = new EndpointAddress("http://example.com/services/OrderService.svc");
Но я не мог добавить Поведение к этой конечной точке программно.
Поведение приведено ниже.
<behaviors>
<endpointBehaviors>
<behavior name="NewBehavior">
<dataContractSerializer maxItemsInObjectGraph="6553600" />
</behavior>
</endpointBehaviors>
</behaviors>