[Mono-dev] [PATCH] System.Web.Services: remove extra documentation item(s) from wsdl

Atsushi Eno atsushi at ximian.com
Mon Mar 5 01:13:21 EST 2007

Hi Kosta,

Konstantin Triger wrote:
> Hi Eno,
> The fix works for me, but it's still not good:
> if (o119 is XmlElement) {
> if ((o119.LocalName == "documentation" && o119.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
> }
> else o119.WriteTo (Writer);
> WriteElementLiteral (o119, "", "", false, true);
> }else
> throw CreateUnknownAnyElementException (o119.Name, o119.NamespaceURI);
> So currently it will print twice if the LocalName != "documentation"...
> What it should be is write once if LocalName && NamespaceURI are fine (can be several possibilities - for each XmlAnyElement) or throw.

Well, I thought that there is no other case than "wsdl:documentation"
that could pass there (or I'm likely misunderstanding what the
generated code does). In which case will it output things twice?

Atsushi Eno

More information about the Mono-devel-list mailing list