Bug 6677 - Invalid soap request when invoking a java web service
Summary: Invalid soap request when invoking a java web service
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: WCF assemblies (show other bugs)
Version: 2.10.x
Hardware: PC Windows
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-08-24 07:05 UTC by Nicola Gargagli
Modified: 2012-08-24 07:05 UTC (History)
1 user (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Zip archive containing the test case and other documents useful to reproduce and trubleshoot the issue (6.21 KB, application/zip)
2012-08-24 07:05 UTC, Nicola Gargagli
Details

Description Nicola Gargagli 2012-08-24 07:05:00 UTC
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

Success condition:
the mono soap request is equal to the ms.net request

Notes:
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)
	mono test.exe

Note You need to log in before you can comment on or make changes to this bug.