Hello, thank you for your help, I told you that I am trying to increase the response time as I did in c # modifying the webconfig, now as I am
with aspnet core I modify the appsetting.json. How can I solve this because I get the following error:
The HTTP request to 'http:xxx.svc' has exceeded the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion
of a longer timeout.
I have the following code in appsetting.json
"BasicHttpBinding_IServiceFicha": {
"bindings": {
"basicHttpBinding": {
"binding": {
"name": "BasicHttpBinding_IServiceFicha",
"receiveTimeout": "00:30:00",
"sendTimeout": "00:30:00",
"openTimeout": "00:30:00",
"closeTimeout": "00:30:00",
"maxBufferPoolSize": "2147483647",
"maxBufferSize": "2147483647",
"maxReceivedMessageSize": "2147483647",
"messageEncoding": "Text",
"readerQuota": {
"maxDepth": "2147483647",
"maxStringContentLength": "2147483647",
"maxArrayLength": "2147483647",
"maxBytesPerRead": "2147483647",
"maxNameTableCharCount": "2147483647"
}
},
"endpoint": {
"address": "http://localhost:8095/ServiceFicha.svc",
"binding": "basicHttpBinding",
"bindingConfiguration": "BasicHttpBinding_IServiceFicha",
"contract": "FichaService.IServiceFicha",
"name": "BasicHttpBinding_IServiceFicha"
}
}
}
}
and call the webservice
public async Task<List<FichaModel>> ObtenerFichas(int p, int v)
{
try
{
FichaService.ServiceFichaClient client = new FichaService.ServiceFichaClient();
var fichas = await client.ObtenerFichasTecnicasAsync(p, v);
.........
}
catch (Exception e)
{
return null;
}
}
Thank you
↧
how to increase the response time to consult a webservice
↧