I am trying to write a simple web service client using Visual Studio 2010.
The WSDL for the service is here:
I was able to call the service using SoapUI using the given certificate file (ext. .crt) and password.
I created a simple console application and added the Web Reference to the service and got a proxy object to call the service.
I spent many hours trying to write a simple function to call the service from my .NET console application but it fails with error:
' Impossible to create a secure SSL/TSL canal'
static void Main(string args)
SendWapPushService swps = new SendWapPushService();
sendWapPush swp = new sendWapPush();
X509Certificate cert = X509Certificate.CreateFrom
NetworkCredential nwCredential = new NetworkCredential("<user>"
swps.Credentials = nwCredential;
swp.address = ... (same params as with SoapUI test)
catch (Exception ex)
I just can't find how to setup the call (credentials / certificate) ... in my .Net example.
Ant help would be greatly appreciated.
No matter what i try, it alway return that same exception ...