[Mono-dev] GUIDs in a web service

2009-07-05 Thread Joe Dluzen
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) [0x0]
  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)
[0x0]
  at System.Xml.Schema.XmlSchemaObject.error
(System.Xml.Schema.ValidationEventHandler handle, System.String
message) [0x0]
  at System.Xml.Schema.XmlSchemaAttribute.Validate
(System.Xml.Schema.ValidationEventHandler h,
System.Xml.Schema.XmlSchema schema) [0x0]
  at System.Xml.Schema.XmlSchemaComplexContentExtension.Validate
(System.Xml.Schema.ValidationEventHandler h,
System.Xml.Schema.XmlSchema schema) [0x0]
  at System.Xml.Schema.XmlSchemaComplexContent.Validate
(System.Xml.Schema.ValidationEventHandler h,
System.Xml.Schema.XmlSchema schema) [0x0]
  at System.Xml.Schema.XmlSchemaComplexType.ValidateContentFirstPass
(System.Xml.Schema.ValidationEventHandler h,
System.Xml.Schema.XmlSchema schema) [0x0]
  at System.Xml.Schema.XmlSchemaComplexType.Validate
(System.Xml.Schema.ValidationEventHandler h,
System.Xml.Schema.XmlSchema schema) [0x0]
  at System.Xml.Schema.XmlSchemaElement.Validate
(System.Xml.Schema.ValidationEventHandler h,
System.Xml.Schema.XmlSchema schema) [0x0]
  at System.Xml.Schema.XmlSchemaSequence.Validate
(System.Xml.Schema.ValidationEventHandler h,
System.Xml.Schema.XmlSchema schema) [0x0]
  at System.Xml.Schema.XmlSchemaComplexContentExtension.Validate
(System.Xml.Schema.ValidationEventHandler h,
System.Xml.Schema.XmlSchema schema) [0x0]
  at System.Xml.Schema.XmlSchemaComplexContent.Validate
(System.Xml.Schema.ValidationEventHandler h,
System.Xml.Schema.XmlSchema schema) [0x0]
  at System.Xml.Schema.XmlSchemaComplexType.ValidateContentFirstPass
(System.Xml.Schema.ValidationEventHandler h,
System.Xml.Schema.XmlSchema schema) [0x0]
  at System.Xml.Schema.XmlSchemaComplexType.Validate
(System.Xml.Schema.ValidationEventHandler h,
System.Xml.Schema.XmlSchema schema) [0x0]
  at System.Xml.Schema.XmlSchema.Validate
(System.Xml.Schema.ValidationEventHandler handler) [0x0]
  at System.Xml.Schema.XmlSchemaSet.Compile () [0x0]
  at System.Xml.Schema.XmlSchema.Compile
(System.Xml.Schema.ValidationEventHandler handler,
System.Xml.XmlResolver resolver) [0x0]
  at System.Xml.Schema.XmlSchema.Compile
(System.Xml.Schema.ValidationEventHandler handler) [0x0]
  at System.Xml.Serialization.XmlSchemas.Find
(System.Xml.Schema.XmlSchema schema, System.Xml.XmlQualifiedName name,
System.Type type) [0x0]
  at System.Xml.Serialization.XmlSchemas.Find
(System.Xml.XmlQualifiedName name, System.Type type) [0x0]
  at ASP.DefaultWsdlHelpGenerator_aspx.BuildParameters
(System.Collections.ArrayList list,
System.Web.Services.Description.OperationMessage opm) [0x0]
  at ASP.DefaultWsdlHelpGenerator_aspx.BuildOperationInfo () [0x0]
  at ASP.DefaultWsdlHelpGenerator_aspx.Page_Load (System.Object
sender, System.EventArgs e) [0x0]
  at System.Web.UI.Control.OnLoad (System.EventArgs e) [0x0]
  at System.Web.UI.Control.LoadRecursive () [0x0]
  at System.Web.UI.Page.ProcessLoad () [0x0]
  at System.Web.UI.Page.ProcessPostData () [0x0]
  at System.Web.UI.Page.InternalProcessRequest () [0x0]
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext
context) [0x0]


>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
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] GUIDs in a web service (GUID gets serialized as string )

2010-01-30 Thread Slug


jago wrote:
> 
> 
>>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.
> 
> Thanks,
> J
> 

Find any solution to this?  I infer from the fact that the [Mono-dev] 
posting from Nov 2005 is now several years old that this is Mono's endstate
for this behavior.  Are there any widely accepted work~arounds that people
are commonly using?
-- 
View this message in context: 
http://old.nabble.com/GUIDs-in-a-web-service-tp24344864p27389153.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list