Created attachment 2405 [details]
Zip archive containing the test case and other documents useful to reproduce and trubleshoot the issue
I'm trying to port an existing .net application to the mono runtime but I have banged my head against what seems to be a strange serialization issue.
My application is calling a java web service described by the wsdl that you can find at the address https://gist.github.com/3413765 or attached to this bug report.
A SvcUtil.exe generated client running on .net 4.0 has no problem invoking the service, however when i use the same client to perform a request using the mono runtime the resulting soap request is invalid. The details of the soap request can be found at the address https://gist.github.com/3413791 or attached to this bug report.
You may compare it to the correct soap request (from the .net 4.0 runtime) that you can find at the address https://gist.github.com/3413809 or attached to this bug report, the errors are quite obvious.
I was able to reproduce this issue on mono 2.10.8 and on alpha 2.11.3, both versions running under windows.
Attached you will find a zip archive containing:
- serviceWsdl.wsdl: the wsdl of the service I'm trying to invoke
- clrSoapRequest.txt: the soap request sent using the ms.net 4.0 runtime
- monoSoapRequest.txt: the soap request sent using the mono runtime (the error is quite obvious if you look at the content of the "Body" element)
- test.cs: a barebone test case application to reproduce the issue
the mono soap request is equal to the ms.net request
You may need a sniffer such as fiddler or wireshark to inspect the requests (I don't know how to trace net traffic under mono)
To compile the test case run
mcs -r:System.ServiceModel.dll Test.cs
to execute the sample run (using a sniffer such as fiddler or wireshark to inspect the soap request)