WCF proxies: do I need to create a new and different proxy for each binding?

Let's say that I created the WCF proxy from the WCF service (which is configured using wsHttpBinding) using the Add Service (in Visual Studio 2008).

Later I want to use basicHttpBinding so I go and change the WCF service to use basicHttpBinding. But what about a WCF proxy? Can I just change this via Web.config or do I need to create a WCF proxy server again from the WCF service using the Add Service?

thank

+3
source share
1 answer

It depends :-)

Add Service Reference Add Service Reference, , - - . ( ) , :

MyServiceClient client = new MyServiceClient("endpointname");

, , , - . " Service References Service References , " Update Service Reference " .

Update Service Reference

.

, , , , .

+1

Source: https://habr.com/ru/post/1743703/


All Articles