Bug 30344 - ServiceDescription.Write creates 2 identical namespace prefixes for soapenc
Summary: ServiceDescription.Write creates 2 identical namespace prefixes for soapenc
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Web.Services ()
Version: 3.12.0
Hardware: PC Windows
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2015-05-22 08:13 UTC by Faried Fauzi
Modified: 2015-05-22 08:13 UTC (History)
1 user (show)

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

Test Service Description (6.51 KB, application/x-gzip)
2015-05-22 08:13 UTC, Faried Fauzi

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 30344 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:

Description Faried Fauzi 2015-05-22 08:13:58 UTC
Created attachment 11297 [details]
Test Service Description

We are using ServiceDescription to read a wsdl, do some operation (redirecting references to local references) and write it again using ServiceDescription to a different file. Output file is generated without error. However, if 'soapenc' namespace defined in inputWSDL with value (xmlns:soapenc="http://www.w3.org/2001/09/soap-encoding"), the ServiceDescription class in Mono will still create the same prefix with different value (xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"). This causes the wsdl to be no longer valid.

I suspect somewhere in ServiceDescription.GetNamespaceList() method can be adapted to not create duplicate prefix.