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

Rune Elvemo rune.elvemo at 3way.no
Wed Feb 7 05:21:24 EST 2007


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.

I attach the .wsdl for the service causing these problems.

Btw: I'm using Mono v 1.1.17.1 (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!


-- 
Rune Elvemo
rune.elvemo at 3way.no
-------------- next part --------------
A non-text attachment was scrubbed...
Name: external.payex.com-pxsms.wsdl
Type: application/xml
Size: 8328 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20070207/ccd01efc/attachment-0001.rdf 


More information about the Mono-list mailing list