[Mono-list] soap headers
Lluis Sanchez
lluis@ximian.com
Wed, 09 Jun 2004 18:32:50 +0200
Hi
If you think that this is a Mono bug (i.e. it works in MS.NET but not in
Mono) please file a bug report in http://bugzilla.ximian.com, attaching
the test case.
Lluis.
On dc, 2004-06-09 at 06:34, Peter Foley wrote:
> I did what was suggested (I only want unknown headers) and got this (accessing
> my web service via IE and xsp) (running Beta 2 on Fedora 1)
> Server error in '/' application
>
> Description: Error processing request.
>
>
> Error Message: HTTP 500.
>
>
> Stack Trace:
>
> System.Xml.Schema.XmlSchemaException: XmlSchema error: name must be a NCName
> Related schema item SourceUri: , Line 0, Position 0.
> in <0x000ae> System.Xml.Schema.ValidationHandler:RaiseValidationEvent
> (System.Xml.Schema.ValidationEventHandler,System.Exception,string,System.Xml.S
> chema.XmlSchemaObject,object,string,System.Xml.Schema.XmlSeverityType)
> in <0x00020> System.Xml.Schema.XmlSchemaObject:error
> (System.Xml.Schema.ValidationEventHandler,string,System.Exception,System.Xml.S
> chema.XmlSchemaObject,object)
> in <0x00038> System.Xml.Schema.XmlSchemaObject:error
> (System.Xml.Schema.ValidationEventHandler,string)
> in <0x002fb> System.Xml.Schema.XmlSchemaComplexType:Compile
> (System.Xml.Schema.ValidationEventHandler,System.Xml.Schema.XmlSchema)
> in <0x0205b> 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)
> in <0x0003b> System.Xml.Schema.XmlSchema:Compile
> (System.Xml.Schema.ValidationEventHandler)
> in <0x0003a> System.Xml.Serialization.XmlSchemas:Find
> (System.Xml.Schema.XmlSchema,System.Xml.XmlQualifiedName,System.Type)
> in <0x0020f> System.Xml.Serialization.XmlSchemas:Find
> (System.Xml.XmlQualifiedName,System.Type)
> in <0x00037> System.Xml.Serialization.XmlSchemaImporter:ImportMembersMapping
> (System.Xml.XmlQualifiedName)
> in <0x0022a>
> System.Web.Services.Description.SoapProtocolImporter:ImportMembersMapping
> (System.Web.Services.Description.Message,System.Web.Services.Description.SoapB
> odyBinding,System.Web.Services.Description.SoapBindingStyle,bool)
> in <0x00204>
> System.Web.Services.Description.SoapProtocolImporter:GenerateMethod ()
> in <0x00818>
> System.Web.Services.Description.ProtocolImporter:ImportPortBinding (bool)
> in <0x00542> System.Web.Services.Description.ProtocolImporter:Import
> (System.Web.Services.Description.ServiceDescriptionImporter,System.CodeDom.Cod
> eNamespace,System.CodeDom.CodeCompileUnit,System.Collections.ArrayList)
> in <0x00047> System.Web.Services.Description.ServiceDescriptionImporter:Import
> (System.CodeDom.CodeNamespace,System.CodeDom.CodeCompileUnit)
> in <0x00425> ASP.DefaultWsdlHelpGenerator_aspx:GetProxyCode ()
> in <0x00053> ASP.DefaultWsdlHelpGenerator_aspx:__DataBind__bctrl_44
> (object,System.EventArgs)
> in <0x0006a> (wrapper delegate-invoke)
> System.MulticastDelegate:invoke_void_object_EventArgs
> (object,System.EventArgs)
> in <0x00075> System.Web.UI.Control:OnDataBinding (System.EventArgs)
> in <0x00010> System.Web.UI.Control:DataBind ()
> in <0x000a0> System.Web.UI.Control:DataBindChildren ()
> in <0x0001f> System.Web.UI.Control:DataBind ()
> in <0x0078f> ASP.DefaultWsdlHelpGenerator_aspx:Page_Load
> (object,System.EventArgs)
> in <0x0006a> (wrapper delegate-invoke)
> System.MulticastDelegate:invoke_void_object_EventArgs
> (object,System.EventArgs)
> in <0x00075> System.Web.UI.Control:OnLoad (System.EventArgs)
> in <0x00024> System.Web.UI.Control:LoadRecursive ()
> in <0x0018c> System.Web.UI.Page:InternalProcessRequest ()
> in <0x0008d> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
> in <0x000aa>
> System.Web.Services.Protocols.SoapDocumentationHandler:ProcessRequest
> (System.Web.HttpContext)
> in <0x00019>
> System.Web.Services.Protocols.SessionWrapperHandler:ProcessRequest
> (System.Web.HttpContext)
> in <0x002e8> ExecuteHandlerState:Execute ()
> in <0x00084> StateMachine:ExecuteState
> (System.Web.HttpApplication/IStateHandler,bool&)
>
>
>
>
>
>
>
>
>
> |--------+------------------------>
> | | Lluis Sanchez |
> | | <lluis@ximian.|
> | | com> |
> | | |
> | | 09/06/2004 |
> | | 03:01 AM |
> | | Please respond|
> | | to lluis |
> | | |
> |--------+------------------------>
> >----------------------------------------------------------------------------|
> | |
> | To: Peter Foley/Staff/ABS |
> | cc: mono-list@lists.ximian.com |
> | Subject: Re: [Mono-list] soap headers |
> >----------------------------------------------------------------------------|
>
>
>
>
> > How can I get at the soap envelope (especially the headers) from inside a web
> > service?
>
> To access a header from a web service method the easiest way is to
> declare a variable for the header in the web service class and apply the
> SoapHeaderAttribute to the method (see
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebservicesprotocolssoapheaderattributeclasstopic.asp
> for more info).
>
> >
> >
> >
> >
> > -----------------------------------------------
> > ABS Web Site: www.abs.gov.au
> >
> > _______________________________________________
> > Mono-list maillist - Mono-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
>
> _______________________________________________
> Mono-list maillist - Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
>
>
> _______________________________________________
> Mono-list maillist - Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list