[Mono-aspnet-list] Webservice Client proxy

Vijay Kumar vijay_varma86 at yahoo.com
Mon May 3 03:02:23 EDT 2010


Hai,

I created a asp.net web application project with a webservice in it. So when
i opened the webservice page, i get the overview, service description and
client proxy. If i click the client proxy, i am getting the following
message

Server Error in '/' Application
XmlSchema error: use must be absent in the top level <attribute> Related
schema item SourceUri: , Line 0, Position 0.

Description: HTTP 500. Error processing request.

stack trace:
System.Xml.Schema.XmlSchemaException: XmlSchema error: use must be absent in
the top level <attribute> Related schema item SourceUri: , Line 0, Position
0.
  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] 
  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] 
  at System.Xml.Schema.XmlSchemaObject.error
(System.Xml.Schema.ValidationEventHandler handle, System.String message)
[0x00000] 
  at System.Xml.Schema.XmlSchemaAttribute.Compile
(System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema
schema) [0x00000] 
  at System.Xml.Schema.XmlSchema.DoCompile
(System.Xml.Schema.ValidationEventHandler handler,
System.Collections.Hashtable handledUris, System.Xml.Schema.XmlSchemaSet
col, System.Xml.XmlResolver resolver) [0x00000] 
  at System.Xml.Schema.XmlSchema.CompileSubset
(System.Xml.Schema.ValidationEventHandler handler,
System.Xml.Schema.XmlSchemaSet col, System.Xml.XmlResolver resolver,
System.Collections.Hashtable handledUris) [0x00000] 
  at System.Xml.Schema.XmlSchemaSet.Compile () [0x00000] 
  at System.Xml.Schema.XmlSchema.Compile
(System.Xml.Schema.ValidationEventHandler handler, System.Xml.XmlResolver
resolver) [0x00000] 
  at System.Xml.Schema.XmlSchema.Compile
(System.Xml.Schema.ValidationEventHandler handler) [0x00000] 
  at System.Xml.Serialization.XmlSchemas.Find (System.Xml.Schema.XmlSchema
schema, System.Xml.XmlQualifiedName name, System.Type type) [0x00000] 
  at System.Xml.Serialization.XmlSchemas.Find (System.Xml.XmlQualifiedName
name, System.Type type) [0x00000] 
  at System.Xml.Serialization.XmlSchemaImporter.FindRefAttribute
(System.Xml.XmlQualifiedName refName) [0x00000] 
  at System.Xml.Serialization.XmlSchemaImporter.GetRefAttribute
(System.Xml.XmlQualifiedName typeQName, System.Xml.Schema.XmlSchemaAttribute
attr, System.String& ns) [0x00000] 
  at System.Xml.Serialization.XmlSchemaImporter.ImportAttributes
(System.Xml.XmlQualifiedName typeQName, System.Xml.Serialization.ClassMap
cmap, System.Xml.Schema.XmlSchemaObjectCollection atts,
System.Xml.Schema.XmlSchemaAnyAttribute anyat,
System.Xml.Serialization.CodeIdentifiers classIds) [0x00000] 
  at System.Xml.Serialization.XmlSchemaImporter.BuildClassMap
(System.Xml.Serialization.XmlTypeMapping map, System.Xml.XmlQualifiedName
typeQName, System.Xml.Schema.XmlSchemaComplexType stype) [0x00000] 
  at System.Xml.Serialization.XmlSchemaImporter.BuildPendingMaps ()
[0x00000] 
  at
System.Xml.Serialization.XmlSchemaImporter.ImportMembersMappingComposite
(System.Xml.Schema.XmlSchemaComplexType stype, System.Xml.XmlQualifiedName
refer) [0x00000] 
  at System.Xml.Serialization.XmlSchemaImporter.ImportMembersMapping
(System.Xml.XmlQualifiedName name) [0x00000] 
  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] 
  at System.Web.Services.Description.SoapProtocolImporter.GenerateMethod ()
[0x00000] 
  at System.Web.Services.Description.ProtocolImporter.ImportPortBinding
(Boolean multipleBindings) [0x00000] 
  at System.Web.Services.Description.ProtocolImporter.Import
(System.Web.Services.Description.ServiceDescriptionImporter
descriptionImporter, System.CodeDom.CodeNamespace codeNamespace,
System.Collections.ArrayList importInfo) [0x00000] 
  at System.Web.Services.Description.ServiceDescriptionImporter.Import
(System.CodeDom.CodeNamespace codeNamespace, System.CodeDom.CodeCompileUnit
codeCompileUnit) [0x00000] 
  at ASP.DefaultWsdlHelpGenerator_aspx.GetProxyCode () [0x000b9] in
/home/vijay/D2TMSOutputService/DefaultWsdlHelpGenerator.aspx:432 
  at ASP.DefaultWsdlHelpGenerator_aspx.__RenderTree
(System.Web.UI.HtmlTextWriter __output, System.Web.UI.Control
parameterContainer) [0x006ea] in
/home/vijay/D2TMSOutputService/DefaultWsdlHelpGenerator.aspx:1846 
  at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter
writer) [0x00000] 
  at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter writer)
[0x00000] 
  at System.Web.UI.Page.Render (System.Web.UI.HtmlTextWriter writer)
[0x00000] 
  at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter
writer) [0x00000] 
  at System.Web.UI.Page.RenderPage () [0x00000] 
  at System.Web.UI.Page.InternalProcessRequest () [0x00000] 
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)
[0x00000] 

The service description and the overview are looking fine but the client
proxy is not generating any code. Am i doing some thing wrong.

PS: I already posted a question regarding this error, but i didn't posted
the error information in breif, so please excuse me if some one feels, that
i am reposting the same question.
-- 
View this message in context: http://mono.1490590.n4.nabble.com/Webservice-Client-proxy-tp2123599p2123599.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.


More information about the Mono-aspnet-list mailing list