hi,
please could anyone provide the correct answer for the question.
If "IService1" is a contract,
public interface IService1
{
[operationContract]
string GetData(int value);
} then at the client side followoing is the piece of code to obtin the proxyObject, to call the service .
string url = "htt://localhost:26800/service1.svc?wsdl";
EndPointAddress endPoint = new EndPointAddress (url);
BasicHttpBinding binding = new BasicHttpBinding();
----------------------------------------------------------------------------------
Console.WriteLine (ref, GetData(100)) ;
Options :
1. IService1 lref = new ChannelFactory (endPoint), CreateChannel();
2. IService1 lref = new ChannelFactory (binding, endPoint), CreateChannel();
3. IService1 lref = new ChannelFactory (binding), CreateChannel();
4. IService1 lref = new ChannelFactory (), CreateChannel();
Akash VarshneyPosted Sep 6, 2016, 8:03 AM
anil kumarPosted Sep 8, 2016, 12:56 PM
anil kumarPosted Sep 2, 2016, 11:09 AM
ketan borsdiyaPosted Sep 2, 2016, 1:45 AM
Akash VarshneyPosted Sep 2, 2016, 1:24 AM