public string GetData() { using (Service1Client client = new Service1Client()) { var composite = new ServiceReference1.CompositeType(); composite.StringValue = "Wcf Demo"; composite.BoolValue = true; var data = client.GetDataUsingDataContract(null); return(JsonConvert.SerializeObject(data)); } }
public System.Threading.Tasks.Task <ServiceReference1.CompositeType> GetDataUsingDataContractAsync(ServiceReference1.CompositeType composite) { return(base.Channel.GetDataUsingDataContractAsync(composite)); }
public ServiceReference1.CompositeType GetDataUsingDataContract(ServiceReference1.CompositeType composite) { return(base.Channel.GetDataUsingDataContract(composite)); }
public GetDataUsingDataContractResponse(ServiceReference1.CompositeType GetDataUsingDataContractResult) { this.GetDataUsingDataContractResult = GetDataUsingDataContractResult; }
public GetDataUsingDataContractRequest(ServiceReference1.CompositeType composite) { this.composite = composite; }