You need to update the client so that it can communicate with the server what should you do

A Windows Communication Foundation (WCF) service listens for messages at net
tcpilwwwcontoso.comMMyService. It has a logical address at
http/Iwwwcontosocorn)MyService The configuration for the WCF client is as follows
<endpoint addressrhTttpllwwwcontosocom/MyService” bindinge”netTc pBinding”
bindingConfiguraton-NetTc pBinding_lMyService contract=”ServiceReference 1. IMyServce’
name=’NetTcpBinding_lllyService”/>v The generated configuration does not provide enough
information for the client to communicate with the server. You need to update the client so
that it can communicate with the server what should you do

A Windows Communication Foundation (WCF) service listens for messages at net
tcpilwwwcontoso.comMMyService. It has a logical address at
http/Iwwwcontosocorn)MyService The configuration for the WCF client is as follows
<endpoint addressrhTttpllwwwcontosocom/MyService” bindinge”netTc pBinding”
bindingConfiguraton-NetTc pBinding_lMyService contract=”ServiceReference 1. IMyServce’
name=’NetTcpBinding_lllyService”/>v The generated configuration does not provide enough
information for the client to communicate with the server. You need to update the client so
that it can communicate with the server what should you do

A.
After instantiating the client and before invoking any service operation, add this line of
code client Endpoint BehaviorsAdd( new EndpointDiscoveryBehawior0{ Enabled true });

B.
After instantiating the client and before invoking any service operation, add this line of
code. client. Endpoint BehaviorsAdd( new Client ViaBehavior( new Uhcnet.tc
pifwww.contoso. comiIMyService)))

C.
In the client configuration. Change the value of the address attribute to
nettcp:/Iwwwcontosocom/MyService

D.
In the client configuration, change the value of the address attribute to
net.tcp:Ilwwwcontosocom/MyServicellisten=http:/Iwwwcontosocom/MyService.



Leave a Reply 0

Your email address will not be published. Required fields are marked *