Hi Friends,
I am adding webservice url through connected services to the project.I am calling the service url like this.
BasicHttpBinding rsBinding = new BasicHttpBinding();
rsBinding.Security.Mode = BasicHttpSecurityMode.TransportCredentialOnly;
rsBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Ntlm;
rsBinding.MaxReceivedMessageSize = Int32.MaxValue;
rsBinding.MaxBufferSize = Int32.MaxValue;
EndpointAddress rsEndpointAddress = new EndpointAddress("serviceurl");
soapclient = new ServiceSoapClient(rsBinding, rsEndpointAddress);
string fromdate = "2018-01-01";
string todate = "2050-12-31";
string username = "user";
string password = "password";
var result = await soapclient.GetDataSetResultAsync(fromdate, todate, username, password);
string jsonString = JsonConvert.SerializeObject(result);
var objects = JObject.Parse(jsonString);
when I am executing this async method.The response is null from GetDataSetResultAsync.I am not getting any data from the webservice url.
Please tell me the what's wrong in myy code and how to get the data from the webservice method?
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Afzaal Ahmad ZeeshanPosted Aug 3, 2019, 2:26 PM