[Mono-list] Adding web reference problem

Adriano Donato De Matteis adriano.dema at gmail.com
Wed Mar 30 11:40:59 EDT 2011


Pending Alert: This post has NOT been accepted by the mailing list yet.
I'm using monodevelop on framework 2.6.7 and I'm trying to add a web
reference in my C# program . This is the error message that I've received: 

System.Xml.Schema.XmlSchemaException: XmlSchema error: Base schema complex
type of a simple content must be simple content type. Base type is
http://www.w3.org/2001/XMLSchema:anyType Related schema item SourceUri:
http://localhost:8090/LocationManager?xsd=1, Line 93, Position 2. 
  at System.Xml.Schema.ValidationHandler.RaiseValidationEvent
(System.Xml.Schema.ValidationEventHandler handle, System.Exception
innerException, System.String message, System.Xml.Schema.XmlSchemaObject
xsobj, System.Object sender, System.String sourceUri, XmlSeverityType
severity) [0x00000] in :0 
  at System.Xml.Schema.XmlSchemaObject.error
(System.Xml.Schema.ValidationEventHandler handle, System.String message,
System.Exception innerException, System.Xml.Schema.XmlSchemaObject xsobj,
System.Object sender) [0x00000] in :0 
  at System.Xml.Schema.XmlSchemaObject.error
(System.Xml.Schema.ValidationEventHandler handle, System.String message)
[0x00000] in :0 
  at System.Xml.Schema.XmlSchemaComplexType.ValidateContentModel
(System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema
schema) [0x00000] in :0 
  at System.Xml.Schema.XmlSchemaComplexType.Validate
(System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema
schema) [0x00000] in :0 
  at System.Xml.Schema.XmlSchemaElement.Validate
(System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema
schema) [0x00000] in :0 
  at System.Xml.Schema.XmlSchemaSequence.Validate
(System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema
schema) [0x00000] in :0 
  at System.Xml.Schema.XmlSchemaComplexType.ValidateContentFirstPass
(System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema
schema) [0x00000] in :0 
  at System.Xml.Schema.XmlSchemaComplexType.Validate
(System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema
schema) [0x00000] in :0 
  at System.Xml.Schema.XmlSchema.Validate
(System.Xml.Schema.ValidationEventHandler handler) [0x00000] in :0 
  at System.Xml.Schema.XmlSchemaSet.Compile () [0x00000] in :0 
  at System.Xml.Schema.XmlSchema.Compile
(System.Xml.Schema.ValidationEventHandler handler, System.Xml.XmlResolver
resolver) [0x00000] in :0 
  at System.Xml.Schema.XmlSchema.Compile
(System.Xml.Schema.ValidationEventHandler handler) [0x00000] in :0 
  at System.Xml.Serialization.XmlSchemas.Find (System.Xml.Schema.XmlSchema
schema, System.Xml.XmlQualifiedName name, System.Type type) [0x00000] in :0 
  at System.Xml.Serialization.XmlSchemas.Find (System.Xml.XmlQualifiedName
name, System.Type type) [0x00000] in :0 
  at System.Xml.Serialization.XmlSchemaImporter.ImportMembersMapping
(System.Xml.XmlQualifiedName[] names) [0x00000] in :0 
  at
System.Web.Services.Description.SoapProtocolImporter.ImportMembersMapping
(System.Web.Services.Description.Message msg,
System.Web.Services.Description.SoapBodyBinding sbb, SoapBindingStyle style,
Boolean output, Boolean wrapped) [0x00000] in :0 
  at System.Web.Services.Description.SoapProtocolImporter.GenerateMethod ()
[0x00000] in :0 
  at System.Web.Services.Description.ProtocolImporter.ImportPortBinding
(Boolean multipleBindings) [0x00000] in :0 
  at System.Web.Services.Description.ProtocolImporter.Import
(System.Web.Services.Description.ServiceDescriptionImporter
descriptionImporter, System.CodeDom.CodeNamespace codeNamespace,
System.Collections.ArrayList importInfo) [0x00000] in :0 
  at System.Web.Services.Description.ServiceDescriptionImporter.Import
(System.CodeDom.CodeNamespace codeNamespace, System.CodeDom.CodeCompileUnit
codeCompileUnit) [0x00000] in :0 
  at MonoDevelop.WebReferences.Library.GenerateWsdlXml
(System.Text.StringBuilder text,
System.Web.Services.Discovery.DiscoveryClientProtocol protocol) [0x00000] in
:0 
  at
MonoDevelop.WebReferences.WS.WebServiceDiscoveryResultWS.GetDescriptionMarkup
() [0x00000] in :0 
  at MonoDevelop.WebReferences.Dialogs.WebReferenceDialog.UpdateService
(MonoDevelop.WebReferences.WebServiceDiscoveryResult service, System.String
url) [0x00000] in :0 
  at
MonoDevelop.WebReferences.Dialogs.WebReferenceDialog+c__AnonStorey5.<>m__0
(System.Object , System.EventArgs ) [0x00000] in :0 
  at Gtk.Application+InvokeCB.Invoke () [0x00000] in :0 
  at GLib.Timeout+TimeoutProxy.Handler () [0x00000] in :0 

Surfing the net I've read that it is a possible mono's bag. Is it true or
there is a solution for this problem? 
Thanks all

--
View this message in context: http://mono.1490590.n4.nabble.com/Adding-web-reference-problem-tp3418448p3418448.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list