[Mono-list] web services (soap) doesn't work too well when using SSL?

Sebastien Pouliot sebastien.pouliot at gmail.com
Wed Feb 7 09:30:36 EST 2007

Hello Rune,

On Wed, 2007-02-07 at 11:21 +0100, Rune Elvemo wrote:
> I had to write a program using SOAP for an SMS service. I had never
> written anything using SOAP before, and noticed that Mono had this nice
> 'wsdl' tool. 
> First I tried using a normal public soap service, and all was fine.
> However, when I used the actual service we were supposed to be using,
> things did NOT work too well:
> ------------- error message ---------------
> Unhandled Exception: System.Net.WebException: Error writing request.
>   at System.Net.WebConnectionStream.WriteRequest () [0x00000] 
>   at System.Net.WebConnectionStream.Close () [0x00000] 
>   at System.IO.StreamWriter.Dispose (Boolean disposing) [0x00000] 
>   at System.IO.StreamWriter.Close () [0x00000] 
>   at System.Xml.XmlTextWriter.Close () [0x00000] 
>   at System.Web.Services.Protocols.SoapHttpClientProtocol.SendRequest
> (System.IO.Stream s, System.Web.Services.Protocols.SoapClientMessage
> message, System.Web.Services.Protocols.SoapExtension[] extensions)
> [0x00000] 
>   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke
> (System.String method_name, System.Object[] parameters) [0x00000] 
> ------------- error message ---------------
> At first I thought I had done something wrong, but when compiling and
> running under Visual Studio Express for C#, everything worked, without
> any exceptions. (Running the compiled binary using Mono gave the same
> error)
> My suspicion is that for some reason Mono does not support Soap when
> using SSL.

>From the SSL side please make sure you have read the documentation about
root certificates available from http://www.mono-project.com (just do a
search for SSL).

> I attach the .wsdl for the service causing these problems.
> Btw: I'm using Mono v (from latest ubuntu)
> I also noticed that Mono v2 has been released, anyone who can confirm
> whether the same error occurs in that release or not?
> Thanks!
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
Sebastien Pouliot  <sebastien at ximian.com>
Blog: http://pages.infinit.net/ctech/

More information about the Mono-list mailing list