Skip Navigation LinksForums > SpiraTeam Forums > SpiraTeam Issues & Questi... > SpiraTeam SOAP API and AS...

SpiraTeam SOAP API and ASP Authenticating problem RSS Feed

Wednesday, June 22, 2016

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:

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

And here is my reading function:

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

                 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
Adam SAdam S
re: Patryk Gudalewicz on Wednesday, June 22, 2016
Wednesday, June 22, 2016
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.

  • Started: 6/22/2016
  • Last Reply: 6/22/2016
  • Replies: 1
  • Views: 2347
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2017 | Licensed to Inflectra Corporation.