po_header.PO_No=mystring2'
po_header.mystring='mystring'
#if defined PBDOTNET THEN
@system.object SO
SO=create dt_purchaseorder_header
SO=po_header
@System.Xml.Serialization.XmlSerializer serializer
serializer=CREATE @System.Xml.Serialization.XmlSerializer(SO.gettype
())
@System.IO.StreamWriter WriteFileStream
WriteFileStream = create @System.IO.StreamWriter("C:\XML_TEST
\test.xml")
serializer.Serialize(WriteFileStream, SO)
WriteFileStream.Close()
#end if
But when it comes to the below line of code
serializer.Serialize(WriteFileStream, SO)
I'm getting an exception.
SystemInvalidOperationException void checksupported of object
system.xml.serialization.typedesc
dt_purchaseorder_header contains as public instances two strings.
If I try to serialize the same object in Visual Studio everything
works OK !. So It have to do something with Powerbuilder.
I think it has something to do with the System.Object ? Does not
recognize what type of object it is ? I don't Know.
How can I use serialization classes in Powerbuilder or is it
something I did wrong ?
Thank you
http://www.sybase.com/detail?id=47613
On Sun, 10 Jan 2010 10:21:36 -0800 (PST), zakkar <zak...@gmail.com>
wrote:
>ANYONE FROM SYBASE ????
-----------------------------------
My Web 2.0 Stuff
Blog: http://bruce.pbdjmagazine.com/
Facebook: http://www.facebook.com/people/Bruce-Armstrong/1600223798
Fotki: http://public.fotki.com/brucearmstrong/
LinkedIn: http://www.linkedin.com/in/bruceaarmstrong
Twitter: http://twitter.com/bruce_armstrong
YouTube: http://www.youtube.com/user/brucearmstrong