Hi Eno, That's right, in Sys.Web.Services exists only "wsdl:documentation" case. But since you make a change in the generator code, the fix should be generic.
What I mean is that if someone outside the Sys.Web.Services will create such a code and pass something different to "wsdl:documentation", he will get results different than on .net. Regards, Kosta > -----Original Message----- > From: Atsushi Eno [mailto:[EMAIL PROTECTED] > Sent: Monday, March 05, 2007 8:13 AM > To: Konstantin Triger > Cc: Mono Development List > Subject: Re: [Mono-dev] [PATCH] System.Web.Services: remove extra > documentation item(s) from wsdl > > 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 _______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list