public string GetData2()
        {
            using (Service2Client client = new Service2Client())
            {
                var composite = new ServiceReference2.CompositeType();

                var data = client.GetDataUsingDataContract(composite);

                return(JsonConvert.SerializeObject(data));
            }
        }
Exemple #2
0
 public ServiceReference2.CompositeType GetDataUsingDataContract(ServiceReference2.CompositeType composite)
 {
     return(base.Channel.GetDataUsingDataContract(composite));
 }
 public System.Threading.Tasks.Task <ServiceReference2.CompositeType> GetDataUsingDataContractAsync(ServiceReference2.CompositeType composite)
 {
     return(base.Channel.GetDataUsingDataContractAsync(composite));
 }