SpiraTeam SOAP API and ASP Authenticating problem

Wednesday, June 22, 2016
Avatar
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
Avatar
re: gudalka 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.

Regards
Adam

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Wednesday, June 22, 2016
  • Last Reply: Wednesday, June 22, 2016
  • Replies: 1
  • Views: 12925