[Mono-dev] GUIDs in a web service
Joe Dluzen
jdluzen at gmail.com
Sun Jul 5 12:49:30 EDT 2009
Hi all,
I'm having trouble with GUID parameters in a web service. Error:
XmlSchema error: Referenced schema type http://www.example.com/:guid
was not found in the corresponding schema. Related schema item
SourceUri: , Line 0, Position 0.
Stack trace:
System.Xml.Schema.XmlSchemaException: XmlSchema error: Referenced
schema type http://www.example.com/:guid was not found in the
corresponding schema. 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.Validate
(System.Xml.Schema.ValidationEventHandler h,
System.Xml.Schema.XmlSchema schema) [0x00000]
at System.Xml.Schema.XmlSchemaComplexContentExtension.Validate
(System.Xml.Schema.ValidationEventHandler h,
System.Xml.Schema.XmlSchema schema) [0x00000]
at System.Xml.Schema.XmlSchemaComplexContent.Validate
(System.Xml.Schema.ValidationEventHandler h,
System.Xml.Schema.XmlSchema schema) [0x00000]
at System.Xml.Schema.XmlSchemaComplexType.ValidateContentFirstPass
(System.Xml.Schema.ValidationEventHandler h,
System.Xml.Schema.XmlSchema schema) [0x00000]
at System.Xml.Schema.XmlSchemaComplexType.Validate
(System.Xml.Schema.ValidationEventHandler h,
System.Xml.Schema.XmlSchema schema) [0x00000]
at System.Xml.Schema.XmlSchemaElement.Validate
(System.Xml.Schema.ValidationEventHandler h,
System.Xml.Schema.XmlSchema schema) [0x00000]
at System.Xml.Schema.XmlSchemaSequence.Validate
(System.Xml.Schema.ValidationEventHandler h,
System.Xml.Schema.XmlSchema schema) [0x00000]
at System.Xml.Schema.XmlSchemaComplexContentExtension.Validate
(System.Xml.Schema.ValidationEventHandler h,
System.Xml.Schema.XmlSchema schema) [0x00000]
at System.Xml.Schema.XmlSchemaComplexContent.Validate
(System.Xml.Schema.ValidationEventHandler h,
System.Xml.Schema.XmlSchema schema) [0x00000]
at System.Xml.Schema.XmlSchemaComplexType.ValidateContentFirstPass
(System.Xml.Schema.ValidationEventHandler h,
System.Xml.Schema.XmlSchema schema) [0x00000]
at System.Xml.Schema.XmlSchemaComplexType.Validate
(System.Xml.Schema.ValidationEventHandler h,
System.Xml.Schema.XmlSchema schema) [0x00000]
at System.Xml.Schema.XmlSchema.Validate
(System.Xml.Schema.ValidationEventHandler handler) [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 ASP.DefaultWsdlHelpGenerator_aspx.BuildParameters
(System.Collections.ArrayList list,
System.Web.Services.Description.OperationMessage opm) [0x00000]
at ASP.DefaultWsdlHelpGenerator_aspx.BuildOperationInfo () [0x00000]
at ASP.DefaultWsdlHelpGenerator_aspx.Page_Load (System.Object
sender, System.EventArgs e) [0x00000]
at System.Web.UI.Control.OnLoad (System.EventArgs e) [0x00000]
at System.Web.UI.Control.LoadRecursive () [0x00000]
at System.Web.UI.Page.ProcessLoad () [0x00000]
at System.Web.UI.Page.ProcessPostData () [0x00000]
at System.Web.UI.Page.InternalProcessRequest () [0x00000]
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext
context) [0x00000]
>From searching around, it seems that GUID is not a build in type, but
a schema possibly existed at one point in time at
http://microsoft.com/wsdl/types.
I've found http://lists.ximian.com/pipermail/mono-devel-list/2005-November/015981.html
which seems to be related.
I'm now attempting
http://msdn.microsoft.com/en-us/magazine/cc164115.aspx#S7 to see if
that will help, but I'm really hoping that there's an easier way.
I'm on XP with Mono 2.4 and XSP.
Ubuntu 8.10 Mono 2.4.
Thanks,
J
More information about the Mono-devel-list
mailing list