Inflectra Customer Forums: Problem with authentication on client (Thread) 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 en-US(C) Copyright 2006-2024 Inflectra Corporation.support@inflectra.com/Computers/Software/Project_Management//Computers/Software/Quality_Assurance/KronoDesksupport@inflectra.comhttp://www.inflectra.com/kronodesk/forums/threads120/Support/Forum/spiratest/issues-questions/730.aspxthreadId=730John Lunde Flennmark (john.lundeflenmark@se.consafelogistics.com)Problem with authentication on client 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 Wed, 09 Oct 2013 09:21:16 -04002013-10-09T09:35:28-04:00/Support/Forum/spiratest/issues-questions/730.aspxmessageId=1325John Lunde Flennmark (john.lundeflenmark@se.consafelogistics.com) Nevermind. Solved it. Thanks anyway. Edited the configuration for SOAP. Nevermind. Solved it. Thanks anyway. Edited the configuration for SOAP. Wed, 09 Oct 2013 09:35:10 -04002013-10-09T09:35:10-04:00/Support/Forum/spiratest/issues-questions/730.aspx#reply1325messageId=1326John Lunde Flennmark (john.lundeflenmark@se.consafelogistics.com) http://stackoverflow.com/questions/7996931/c-sharp-soap-error-in-deserializing-body-of-reply-mess http://stackoverflow.com/questions/7996931/c-sharp-soap-error-in-deserializing-body-of-reply-message-magento-api Wed, 09 Oct 2013 09:35:28 -04002013-10-09T09:35:28-04:00/Support/Forum/spiratest/issues-questions/730.aspx#reply1326