[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xmlblaster-devel] MsgUnit[] on C#



Jonathan Lee wrote:
Hi,
Anyone out there using xmlBlaster managed to get it working with C# or .NET? I'm not sure if I got it right, but when I tried to call the 'get' function, it suppose to return MsgUnit object. Under the .NET, it returns an Object instead and I can't cast it to 'MsgUnit' .
(e.g. public abstract new System.Object get ( System.String arg0 , System.String arg1 )
Member of XmlScriptAccess.XmlScriptAccessDispatch)
Any solutions on extracting the message information? Thanks!

Sorry, i havn't tried this, but get() returns an array

  MsgUnit[]

and not

  MsgUnit


The only example for ActiveX i have driven to the end was VisualBasic.net, there the solution was simple:


' Get synchronous the above message Dim getMsgArr As Object() getMsgArr = xmlBlaster.get("<key oid='HelloWorld3'/>", "<qos/>") Dim msg As Object For Each msg In getMsgArr Console.WriteLine("Get returned:" & msg.toXml()) Next

As this is an ActiveX mapping issue some
Microsoft .net practitioner could know the answer ...

regards

Marcel




regards, Jonathan

_________________________________________________________________
Find it on the web with MSN Search. http://search.msn.com.sg/




--
http://www.xmlBlaster.org