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)

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


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 6677 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

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