Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Serialization Problems In Powerbuilder 11

120 views
Skip to first unread message

zakkar

unread,
Dec 30, 2009, 4:47:17 AM12/30/09
to
Hi
I'm using PB 11.2 built 8739
I have a wsdl file and I'm trying to use serialization classes in my
PB APP.
I wrote the below code


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


zakkar

unread,
Jan 10, 2010, 1:21:36 PM1/10/10
to
ANYONE FROM SYBASE ????

Bruce Armstrong

unread,
Jan 11, 2010, 12:55:15 AM1/11/10
to

This is an end-user to end-user forum. You might want to review the
guidelines on how to use the forum:

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

0 new messages