Thread

Skip Navigation LinksForums > SpiraTest Forums > SpiraTest Issues & Questi... > Problem with authenticati...

Problem with authentication on client RSS Feed

Wednesday, October 9, 2013
Hello!

We have now started to implement our solution and have encountered a slight problem.

We are trying to test our connection to ST through a web service and a client. We have added a web reference to our server and have started the web service through the wizard.
After that we used svcutil to create a client, but we encounter problems with the authentication.

using System;

using System.Net;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.ServiceModel;

namespace ConsoleApplication1
{
    public class SpiraTeam
    {
        public static void report() 
        {

            ImportExportClient client = new ImportExportClient("BasicHttpBinding_IImportExport");
            client.Endpoint.Address = new EndpointAddress("http://sesdw080041.masystem.net/SpiraTeamUtb/Services/v4_0/ImportExport.svc");
            
            BasicHttpBinding httpBinding = (BasicHttpBinding)client.Endpoint.Binding;
            httpBinding.AllowCookies = true;
            httpBinding.Security.Mode = BasicHttpSecurityMode.None;

            client.Connection_Authenticate("user", "password");
            client.Close();

        }
    }
}

That is the code we use. And we get the error that says: "Error in deserializing body of reply message for operation 'Connection_Authenticate'."
Anyone got any idea on how to solve this?

User and password is of course replaced with correct credentials.

BR
John Lunde Flennmark
Consafe Logistics
2 Replies
John Lunde FlennmarkJohn Lunde Flennmark
re: John Lunde Flennmark on Wednesday, October 9, 2013
Wednesday, October 9, 2013
Nevermind. Solved it.

Thanks anyway.

Edited the configuration for SOAP.
John Lunde FlennmarkJohn Lunde Flennmark
re: John Lunde Flennmark on Wednesday, October 9, 2013
Wednesday, October 9, 2013
Tagged
Statistics
  • Started: 10/9/2013
  • Last Reply: 10/9/2013
  • Replies: 2
  • Views: 858
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2016 | Licensed to Inflectra Corporation.