Bug 6439 - ASMX Web Service Reference List<string> referenced as string[]
Summary: ASMX Web Service Reference List<string> referenced as string[]
Status: RESOLVED ANSWERED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Web Services ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-08-07 08:33 UTC by Neal
Modified: 2015-04-21 07:44 UTC (History)
4 users (show)

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

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 on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED ANSWERED

Description Neal 2012-08-07 08:33:05 UTC
Hello,

I have an ASMX web service that is a simple function that returns a List<string>.  When using MonoTouch the return value is interpreted as a string[].  In Mono for Android in VS.NET 2010 on the very same service, it returns a List<string>.

I'm not sure why MonoTouch is not using the generics List<string> for the web service reference.

FYI
Comment 1 Sebastien Pouliot 2012-08-13 11:54:49 UTC
This is a tooling issue that is not related to MonoTouch (or Mono for Android). 

MonoDevelop or Visual Studio is converting the WSDL into C# bindings and they do it differently. MD version likely still works with .NET 1.x.

Note that you should be able to use the VS.NET generated bindings from MonoTouch (and share the same code between MT and M4A).