Page 1 of 1

.NET integration with MantisConnector

Posted: 27 Sep 2018, 20:37
by azheanda
I'm trying to consume the SOAP services exposed by "http://.../api/soap/mantisconnect.php?wsdl" with .NET framework. I added it to the service reference of a console application. But with different experimentation, it always came back with timeout exception. Any suggestion?

Code: Select all

class Program
{
       static void Main(string[] args)
        {
            using (var client = new MantisConnectPortTypeClient())
            {
                client.Endpoint.Address = new System.ServiceModel.EndpointAddress("http://mantis.***.com/api/soap/mantisconnect.php");
                Console.WriteLine(client.mc_version());
            }
                
        }
    }

Re: .NET integration with MantisConnector

Posted: 28 Sep 2018, 18:46
by azheanda
I tried with "https://www.mantisbt.org/bugs/api/soap/ ... onnect.php" and it worked. Some configuration may be off at our internal Mantis site. Maybe it's because our internal one isn't using secure connection?