<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: Getting exceptions when executing TestSet_Retrieve() function (Thread)</title><description>&#xD;
 Hi,  I'm running into some issues in regards to retrieving all of the available test sets. Seem like if I try to retrieve 400 test sets and above, I start getting exceptions. Is there something wrong with my HTTP binding? I have tried to change the parameters to no avail. Below is the method I execute and the exception:  public bool connect2SpiraServer()          {              spiraexport = new SpiraWebServices.ImportExportClient();              BasicHttpBinding httpBinding = (BasicHttpBinding)spiraexport.Endpoint.Binding;              httpBinding.AllowCookies = true;              httpBinding.Security.Mode = BasicHttpSecurityMode.None;              httpBinding.MaxReceivedMessageSize =&#xD;
9999999;                httpBinding.ReceiveTimeout = new TimeSpan(0,&#xD;
10, 0);              httpBinding.SendTimeout = new TimeSpan(0,&#xD;
1, 0);              httpBinding.CloseTimeout = new TimeSpan(0,&#xD;
1, 0);              httpBinding.OpenTimeout = new TimeSpan(0,&#xD;
1, 0);              httpBinding.BypassProxyOnLocal = false;              httpBinding.HostNameComparisonMode =&#xD;
HostNameComparisonMode.StrongWildcard;              httpBinding.MaxBufferSize = 9999999;              httpBinding.MaxBufferPoolSize = 9999999;              httpBinding.TransferMode = TransferMode.Buffered;              Boolean connectToServer = spiraexport.Connection_Authenticate(username,&#xD;
password);                 …   	     testSets = spiraexport.TestSet_Retrieve(null, 1, 400);  &#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
          }   Exception:  "An&#xD;
error occurred while receiving the HTTP response to&#xD;
http://usmaspiraweb/SpiraTeam/Services/v4_0/ImportExport.svc. This could be due&#xD;
to the service endpoint binding not using the HTTP protocol. This could also be&#xD;
due to an HTTP request context being aborted by the server (possibly due to the&#xD;
service shutting down). See server logs for more details."    Inner&#xD;
Exception:  “The&#xD;
underlying connection was closed: An unexpected error occurred on a receive.”  “Unable to&#xD;
read data from the transport connection: An existing connection was forcibly&#xD;
closed by the remote host.”  Server stack&#xD;
trace:      at&#xD;
System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException&#xD;
webException, HttpWebRequest request, HttpAbortReason abortReason)     at&#xD;
System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan&#xD;
timeout)     at System.ServiceModel.Channels.RequestChannel.Request(Message&#xD;
message, TimeSpan timeout)     at&#xD;
System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message,&#xD;
TimeSpan timeout)     at&#xD;
System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway,&#xD;
ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)     at&#xD;
System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage&#xD;
methodCall, ProxyOperationRuntime operation)      at&#xD;
System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)   &#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
  Exception&#xD;
rethrown at [0]: &#xD;
&#xD;
</description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/spiratest/issues-questions/969.aspx</link><item><guid isPermaLink="false">threadId=969</guid><author>Dmitri Golubovski (dmitrij.g88@gmail.com)</author><category domain="http://www.inflectra.com/kronodesk/thread/tag">soap</category><category domain="http://www.inflectra.com/kronodesk/thread/tag"> api</category><title>Getting exceptions when executing TestSet_Retrieve() function</title><description>&#xD;
 Hi,  I'm running into some issues in regards to retrieving all of the available test sets. Seem like if I try to retrieve 400 test sets and above, I start getting exceptions. Is there something wrong with my HTTP binding? I have tried to change the parameters to no avail. Below is the method I execute and the exception:  public bool connect2SpiraServer()          {              spiraexport = new SpiraWebServices.ImportExportClient();              BasicHttpBinding httpBinding = (BasicHttpBinding)spiraexport.Endpoint.Binding;              httpBinding.AllowCookies = true;              httpBinding.Security.Mode = BasicHttpSecurityMode.None;              httpBinding.MaxReceivedMessageSize =&#xD;
9999999;                httpBinding.ReceiveTimeout = new TimeSpan(0,&#xD;
10, 0);              httpBinding.SendTimeout = new TimeSpan(0,&#xD;
1, 0);              httpBinding.CloseTimeout = new TimeSpan(0,&#xD;
1, 0);              httpBinding.OpenTimeout = new TimeSpan(0,&#xD;
1, 0);              httpBinding.BypassProxyOnLocal = false;              httpBinding.HostNameComparisonMode =&#xD;
HostNameComparisonMode.StrongWildcard;              httpBinding.MaxBufferSize = 9999999;              httpBinding.MaxBufferPoolSize = 9999999;              httpBinding.TransferMode = TransferMode.Buffered;              Boolean connectToServer = spiraexport.Connection_Authenticate(username,&#xD;
password);                 …   	     testSets = spiraexport.TestSet_Retrieve(null, 1, 400);  &#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
          }   Exception:  "An&#xD;
error occurred while receiving the HTTP response to&#xD;
http://usmaspiraweb/SpiraTeam/Services/v4_0/ImportExport.svc. This could be due&#xD;
to the service endpoint binding not using the HTTP protocol. This could also be&#xD;
due to an HTTP request context being aborted by the server (possibly due to the&#xD;
service shutting down). See server logs for more details."    Inner&#xD;
Exception:  “The&#xD;
underlying connection was closed: An unexpected error occurred on a receive.”  “Unable to&#xD;
read data from the transport connection: An existing connection was forcibly&#xD;
closed by the remote host.”  Server stack&#xD;
trace:      at&#xD;
System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException&#xD;
webException, HttpWebRequest request, HttpAbortReason abortReason)     at&#xD;
System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan&#xD;
timeout)     at System.ServiceModel.Channels.RequestChannel.Request(Message&#xD;
message, TimeSpan timeout)     at&#xD;
System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message,&#xD;
TimeSpan timeout)     at&#xD;
System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway,&#xD;
ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)     at&#xD;
System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage&#xD;
methodCall, ProxyOperationRuntime operation)      at&#xD;
System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)   &#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
  Exception&#xD;
rethrown at [0]: &#xD;
&#xD;
</description><pubDate>Mon, 11 Aug 2014 21:14:38 -0400</pubDate><a10:updated>2014-08-22T20:32:16-04:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/969.aspx</link></item><item><guid isPermaLink="false">messageId=1769</guid><author>Jim R (donotreply5@kronodesk.net)</author><title>&#xD;
Hi Dmitri  This error message often means that the size of the data packet being return is larger </title><description>&#xD;
Hi Dmitri  This error message often means that the size of the data packet being return is larger than the maximum allowed in your request. So, either increase the size of  httpBinding.MaxReceivedMessageSize (to Int32.Max) or reduce the pagination size of the request.  Regards Jim  &#xD;
&#xD;
</description><pubDate>Tue, 19 Aug 2014 14:43:50 -0400</pubDate><a10:updated>2014-08-19T14:43:50-04:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/969.aspx#reply1769</link></item><item><guid isPermaLink="false">messageId=1788</guid><author>Dmitri Golubovski (dmitrij.g88@gmail.com)</author><title>&#xD;
HI,&#xD;
&#xD;
    I have tried increasing the  MaxReceivedMessageSize with no success, still get the same</title><description>&#xD;
HI,&#xD;
&#xD;
    I have tried increasing the  MaxReceivedMessageSize with no success, still get the same exception. How would I go about reducing the pagination size of the request? If there is any documentation regarding retrieval of large number of TestCases or TestSets, I would definitely appreciate a reference to it.   </description><pubDate>Fri, 22 Aug 2014 20:32:16 -0400</pubDate><a10:updated>2014-08-22T20:32:16-04:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/969.aspx#reply1788</link></item></channel></rss>