Problem with authentication on client

Wednesday, October 9, 2013

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("");
            BasicHttpBinding httpBinding = (BasicHttpBinding)client.Endpoint.Binding;
            httpBinding.AllowCookies = true;
            httpBinding.Security.Mode = BasicHttpSecurityMode.None;

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


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.

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

Thanks anyway.

Edited the configuration for SOAP.
  • Started: Wednesday, October 9, 2013
  • Last Reply: Wednesday, October 9, 2013
  • Replies: 2
  • Views: 7174