I am trying to get the following piece of code to work in a Mono console app and as the ultimate goal in a MonoTouch application. The code works fine under VS2008 using a Wi
The problem line of code is:
BasicHttpSecurityMode.TransportWithMessageCredential
Mono does not support WS-Security. Basically there are many options on BasicHttpSecurityMode which will not work. If you require Message Credentials, then I'm afraid this code cannot be made to work. Here is a related link:
http://lists.ximian.com/pipermail/mono-bugs/2010-January/096972.html
I recommend you to download the attachment from this link.
I was successful with getting it to work. I set the Web project on Windows machine under IIS 7 with only basic authentication enabled and .NET authorization to a specific user. Then I just run the console app under MonoDevelop on my Mac machine and it worked without any errors.
The only difference I can see between the Mono console app and MonoTouch app is this line:
binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Basic;
In the MonoTouch app the binding.Security.Transport property is not generated.