[Mono-devel-list] error generating .wsdl - duplicated ArrayOfString ??
Lluis Sanchez
lluis at ximian.com
Thu Apr 15 12:46:17 EDT 2004
Hi Javier
This is now fixed in CVS.
Lluis.
On dt, 2004-04-13 at 22:41, Javier Ramon Garcia wrote:
> Hi,
>
> I'll appreciate any help to solve or workaround this problem with wsdl
> generation.
>
> I am implementing with xsp/mod_mono a very simple xml web service. It was
> running ok until I add a new method(TranslateBatch) which return an string[]
>
> It seems that the disco tool included with mono-0.31 (for Fedora) is
> generating a duplicated block for the ArrayOfString type in the
> gererated .wsdl. So when a run wsdl to generate my proxy class i get an error
> like:
>
> Mono Web Services Description Language Utility
> Error: System.Xml.Schema.XmlSchemaException: XmlSchema error: Named item
> http://tempuri.org/:ArrayOfString was already contained in the schema object
> table. Related schema item SourceUri: , Line 33, Position 7.
> in <0x000c1> System.Xml.Schema.ValidationHandler:RaiseValidationEvent
> (System.Xml.Schema.ValidationEventHandler,System.Exception,string,System.Xml.Schema.XmlSchemaObject,object,string,System.Xml.Schema.XmlSeverityType)
> in <0x00020> System.Xml.Schema.XmlSchemaObject:error
> (System.Xml.Schema.ValidationEventHandler,string,System.Exception,System.Xml.Schema.XmlSchemaObject,object)
> in <0x00033> System.Xml.Schema.XmlSchemaObject:error
> (System.Xml.Schema.ValidationEventHandler,string)
> in <0x001a4> System.Xml.Schema.XmlSchemaUtil:AddToTable
> (System.Xml.Schema.XmlSchemaObjectTable,System.Xml.Schema.XmlSchemaObject,System.Xml.XmlQualifiedName,System.Xml.Schema.ValidationEventHandler)
> in <0x01e95> System.Xml.Schema.XmlSchema:Compile
> (System.Xml.Schema.ValidationEventHandler,System.Collections.Stack,System.Xml.Schema.XmlSchema,System.Xml.Schema.XmlSchemaCollection,System.Xml.XmlResolver)
> in <0x00048> System.Xml.Schema.XmlSchema:Compile
> (System.Xml.Schema.ValidationEventHandler,System.Xml.XmlResolver)
>
> If i remove manually the duplicated block the .cs file is generated
> successfully, but I get the same error anyway when testing or using the
> service through the web.
>
> I´ve attached the mono version of the .wsdl and the vs.net version of the
> same .wsdl
>
> The following is an extract of my webservice source code:
>
> ...
>
> [WebMethod]
> public string Translate( string code, string language )
> { ... }
>
> public string[] TranslateBatch( string[] codes, string language )
> {
> // before adding this method everything worked OK
> }
>
> public StringCollection AvailableLanguages( bool with_translations_only )
> { ... }
>
> ...
>
> THANKS
> -J
More information about the Mono-devel-list
mailing list