I am working on an iPhone app that needs to connect to a WCF service over
https.
I have managed to get the application to work fine over HTTP, but when I
changed it over to https, I get the error "An error occurred verifying
security for the message".
I would like to note that we are able to connect to the WCF service over
https using a windows phone 7 version of the app, so we know the web service
is working fine (certificate is good, etc). Also as noted, we managed to
connect to it using the iphone but via http.
I have the following code in the iphone app to connect via the webservice:
BasicHttpBinding binding = new BasicHttpBinding();
binding.Security.Mode =
BasicHttpSecurityMode.TransportWithMessageCredential;
Service1Client dataclient = new Service1Client(binding, new
EndpointAddress("https://serviceurlgoeshere"));
dataclient.ClientCredentials.UserName.Username = "TestLogin";
dataclient.ClientCredentials.Username.Password = "testpass";
//Event handler to handle the asynchronous CompletedEventArgs here
//Call the Async method
Any help would be greatly appreciated, thanks
--
View this message in context:
http://monotouch.2284126.n4.nabble.com/Connecting-to-WCF-via-HTTPS-tp3516496p3516496.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch