Im facing this error often when i try to call webservice....
System.Net.WebException: The request was aborted: The request was canceled. at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request) at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
when i googled for this error , the possible solution given is to "disable HTTP Keep alive"
Remember that no person is an island. Communicate your thoughts and desires honestly, and encourage others to communicate honestly with you. Practice understanding and motivating other people.
Im not sure whether my understanding is right, if am right , pls guide me on how to write proxy class for wsdl.exe.
If am wrong, guide me to solve this issue.
Thank you
Mark as Answer if any posts helps you
To Make your dreams come true, Don't Sleep
Remember that no person is an island. Communicate your thoughts and desires honestly, and encourage others to communicate honestly with you. Practice understanding and motivating other people.
now i cant find getwebrequest class to override inside my wsdl.
Need some guidance very badly here.
Mark as Answer if any posts helps you
To Make your dreams come true, Don't Sleep
Remember that no person is an island. Communicate your thoughts and desires honestly, and encourage others to communicate honestly with you. Practice understanding and motivating other people.
Remember that no person is an island. Communicate your thoughts and desires honestly, and encourage others to communicate honestly with you. Practice understanding and motivating other people.
Mc.Gem
Member
402 Points
201 Posts
System.Net.WebException: The request was aborted: The request was canceled.
Dec 11, 2012 04:40 AM|LINK
Dear Guys,
Im facing this error often when i try to call webservice....
System.Net.WebException: The request was aborted: The request was canceled.
at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
when i googled for this error , the possible solution given is to "disable HTTP Keep alive"
and some suggested to add this code...
<div style="widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; margin: 0px; font: 13px/19px 'Segoe UI', Helvetica, Garuda, Arial, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: #666666; vertical-align: baseline; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border: 0px; padding: 0px;"> protected override WebRequest GetWebRequest(Uri uri)
{
HttpWebRequest webRequest = (HttpWebRequest)base.GetWebRequest(uri)</div> <div style="widows: 2; text-transform: none; background-color: #ffffff; text-indent: 0px; margin: 0px; font: 13px/19px 'Segoe UI', Helvetica, Garuda, Arial, sans-serif; white-space: normal; orphans: 2; letter-spacing: normal; color: #666666; vertical-align: baseline; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border: 0px; padding: 0px;"> webRequest.KeepAlive = false;
webRequest.ProtocolVersion = HttpVersion.Version10;
return webRequest;
}</div>
but dont know where to write this code.
Pls.Suggest
To Make your dreams come true, Don't Sleep
Remember that no person is an island. Communicate your thoughts and desires honestly, and encourage others to communicate honestly with you. Practice understanding and motivating other people.
Cheers,
RR
Mc.Gem
Member
402 Points
201 Posts
Re: System.Net.WebException: The request was aborted: The request was canceled.
Dec 11, 2012 05:46 AM|LINK
What i have understood is since it is ASP.net web site application,
i wont have references.cs file to add following code:
protected override System.Net.WebRequest GetWebRequest(Uri uri)
{
System.Net.HttpWebRequest webRequest = (System.Net.HttpWebRequest)base.GetWebRequest(uri);
webRequest.SendChunked = true;
webRequest.Timeout = 200000; // this should be greater than IIS / web server's timeout
webRequest.ProtocolVersion = System.Net.HttpVersion.Version11;
return webRequest;
}
i need to generate proxy class for wsdl.exe.
Im not sure whether my understanding is right, if am right , pls guide me on how to write proxy class for wsdl.exe.
If am wrong, guide me to solve this issue.
Thank you
To Make your dreams come true, Don't Sleep
Remember that no person is an island. Communicate your thoughts and desires honestly, and encourage others to communicate honestly with you. Practice understanding and motivating other people.
Cheers,
RR
Mc.Gem
Member
402 Points
201 Posts
Re: System.Net.WebException: The request was aborted: The request was canceled.
Dec 11, 2012 10:57 AM|LINK
Fine, what i have done so far is i have generated proxy class following the steps mentioned in this site
http://www.informit.com/articles/article.aspx?p=29399&seqNum=3
now i cant find getwebrequest class to override inside my wsdl.
Need some guidance very badly here.
To Make your dreams come true, Don't Sleep
Remember that no person is an island. Communicate your thoughts and desires honestly, and encourage others to communicate honestly with you. Practice understanding and motivating other people.
Cheers,
RR
Mc.Gem
Member
402 Points
201 Posts
Re: System.Net.WebException: The request was aborted: The request was canceled.
Dec 12, 2012 04:39 AM|LINK
Hi guys,
Need some help
To Make your dreams come true, Don't Sleep
Remember that no person is an island. Communicate your thoughts and desires honestly, and encourage others to communicate honestly with you. Practice understanding and motivating other people.
Cheers,
RR
oak_silver
Member
418 Points
64 Posts
Re: System.Net.WebException: The request was aborted: The request was canceled.
Dec 13, 2012 05:56 AM|LINK
Do you try inspect the real issue with fiddler tool?