[Mono-bugs] [Bug 407690] New: SoapExtension, Stage beforeSerialize, message. GetInParameterValue(0) yields null reference exception
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Jul 9 14:18:42 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=407690
Summary: SoapExtension, Stage beforeSerialize,
message.GetInParameterValue(0) yields null reference
exception
Product: Mono: Runtime
Version: 1.9.0
Platform: i386
OS/Version: Ubuntu
Status: NEW
Severity: Blocker
Priority: P5 - None
Component: misc
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: sebastian at n-unity.de
QAContact: mono-bugs at lists.ximian.com
Found By: Development
I am currently writing a SoapExtension that needs to examine the objects due to
be send out to a WebService before serializing. The method
GetInParameterValue(int index) should give back the first parameter object that
will be serialized.
On Microsoft .NET Framework this works as expected and I am able to examine the
objects. On Mono 1.9.1 however GetInParameter(0) results in a null reference
exception (System.Web.Services.Protocols.SoapMessage, Object reference not set
to an instance of an object)
Following is part of my SoapExtension's code that runs fine on Microsoft .net
(2.0). It should print the Objects Type Name to console.
public override void ProcessMessage(SoapMessage message)
{
Byte[] buffer = new Byte[2048];
int size;
switch (message.Stage)
{
case SoapMessageStage.BeforeSerialize:
SoapClientMessage clientMessage
= (SoapClientMessage)message;
System.Console.WriteLine(clientMessage.GetInParameterValue(0).GetType().toString());
break;
}
}
Btw. MoMA says my Assembly should run fine with Mono 1.9.1
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list