.NET integration with MantisConnector
Posted: 27 Sep 2018, 20:37
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());
}
}
}