Bug 1768 - Error occurs in adding the web reference to the project.
Summary: Error occurs in adding the web reference to the project.
Status: CLOSED NOT_ON_ROADMAP
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Web Services ()
Version: 2.8.2
Hardware: Macintosh Mac OS
: --- major
Target Milestone: ---
Assignee: Alan McGovern
URL:
: 2270 2389 ()
Depends on:
Blocks:
 
Reported: 2011-10-28 10:57 UTC by narayanp
Modified: 2011-12-22 18:08 UTC (History)
5 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:
CLOSED NOT_ON_ROADMAP

Description narayanp 2011-10-28 10:57:36 UTC
Steps to Reproduce:
1. Launch the application.
2. Click on Start a new solution.
3. Expand c# then select Mono For Android and Mono For Android Application from
center pane.
4. Enter the project name and click on OK button.
5. Right click on the project name then select Add<Add web refrence.
6. Click on OK button.

Actual Result:
Error occurs in adding the web reference.
System.InvalidOperationException: Only 'parameters' element in message part is supported
  at System.ServiceModel.Description.MessageContractImporterInternal.resolveMessage (System.Web.Services.Description.Message msg, System.ServiceModel.Description.MessageBodyDescription body, System.Collections.Generic.List`1 parts) [0x00090] in /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/System.ServiceModel/System.ServiceModel.Description/DataContractSerializerMessageContractImporter.cs:211 
  at System.ServiceModel.Description.MessageContractImporterInternal.DoImportContract () [0x00144] in /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/System.ServiceModel/System.ServiceModel.Description/DataContractSerializerMessageContractImporter.cs:171 
  at System.ServiceModel.Description.MessageContractImporterInternal.ImportContract (System.ServiceModel.Description.WsdlImporter importer, System.ServiceModel.Description.WsdlContractConversionContext context) [0x00110] in /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/System.ServiceModel/System.ServiceModel.Description/DataContractSerializerMessageContractImporter.cs:112 
  at System.ServiceModel.Description.XmlSerializerMessageContractImporter.System.ServiceModel.Description.IWsdlImportExtension.ImportContract (System.ServiceModel.Description.WsdlImporter importer, System.ServiceModel.Description.WsdlContractConversionContext context) [0x0000c] in /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/System.ServiceModel/System.ServiceModel.Description/XmlSerializerMessageContractImporter.cs:66 
  at System.ServiceModel.Description.WsdlImporter.ImportContract (System.Web.Services.Description.PortType wsdlPortType) [0x00240] in /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/System.ServiceModel/System.ServiceModel.Description/WsdlImporter.cs:243 
  at System.ServiceModel.Description.WsdlImporter.ImportAllContracts () [0x00057] in /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/System.ServiceModel/System.ServiceModel.Description/WsdlImporter.cs:166 
  at MonoDevelop.WebReferences.WCF.WebServiceDiscoveryResultWCF.CreateProxyFile (MonoDevelop.Projects.DotNetProject dotNetProject, FilePath basePath, System.String proxyNamespace, System.String referenceName) [0x0014d] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.WebReferences/MonoDevelop.WebReferences.WCF/WebServiceDiscoveryResultWCF.cs:176 
  at MonoDevelop.WebReferences.WebServiceDiscoveryResult.GenerateFiles (MonoDevelop.Projects.DotNetProject project, System.String namspace, System.String referenceName) [0x0008b] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.WebReferences/MonoDevelop.WebReferences/WebServiceDiscoveryResult.cs:89 
  at MonoDevelop.WebReferences.Commands.WebReferenceCommandHandler.NewWebReference () [0x000b8] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.WebReferences/MonoDevelop.WebReferences.Commands/WebReferenceCommandHandler.cs:43 

Expected result:
Error should not occur in adding the web refrence.

Environment:
OS:  Snow Leopard 10.6
MonoTouch 5.0.1
MonoDevelop 2.8.2
Comment 1 Alan McGovern 2011-12-08 20:29:04 UTC
*** Bug 2389 has been marked as a duplicate of this bug. ***
Comment 2 Alan McGovern 2011-12-08 20:29:11 UTC
*** Bug 2270 has been marked as a duplicate of this bug. ***
Comment 3 Alan McGovern 2011-12-08 20:30:01 UTC
This is  a WCF issue which we are not currently dealing with.
Comment 4 narayanp 2011-12-22 04:31:43 UTC
As per Alan's comment this issue can't be fixed hence closing this issue.