SpiraTeam SOAP API and ASP Authenticating problem

Wednesday, June 22, 2016 2:31:46 PM
Hi,

I'm facing problem with SpiraTeam SOAP API.

For a first few times, ImportExportClient is authenticating, but after few actions made with Incidents, I'm getting error:

 "The session was not authenticated, please call the Connection_Authenticate() method first".

This topic was solved for a few times on this forum, but for every time, solution was to enable cookies support on binding and I did this on the beggining.

This is my binding config:

<bindings>
      <basicHttpBinding>
        <binding name="BasicHttpBinding_IImportExport" allowCookies="true">
          <security mode="Transport"/>
        </binding>
      </basicHttpBinding>
 </bindings>

And here is my reading function:

private st.RemoteProject[] getProjects()
        {
                bool result = client.Connection_Authenticate(conn.getSpiraUser(), conn.getSpiraPassword());

if(result)
{
                 st.RemoteProject[] projects = client.Project_Retrieve();
   return projects;
}

                else return null;
        }

Like I said, for first few function calls it works, but sometimes it suddenly stops working and I can't access SpiraTeam via API.
1 Replies
Wednesday, June 22, 2016 6:40:47 PM
Avatar
re: gudalka on Wednesday, June 22, 2016 2:31:46 PM
Hi Patryk

Could you please log a support ticket for this?

There could be many causes, from using an IIS webfarm without sending the ASP.NET Session ID or a load balancer with no session ID handling, etc.

Regards
Adam
Statistics
  • Started: Wednesday, June 22, 2016 2:31:46 PM
  • Last Reply: Wednesday, June 22, 2016 6:40:47 PM
  • Replies: 1
  • Views: 2543