Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Serialization Problems In Powerbuilder 11

3 posts in XML Last posting was on 2010-01-11 05:55:15.0Z
zakkar Posted on 2009-12-30 09:47:17.0Z
From: zakkar <zakkar@gmail.com>
Newsgroups: sybase.public.powerbuilder.xml
Subject: Serialization Problems In Powerbuilder 11
Date: Wed, 30 Dec 2009 01:47:17 -0800 (PST)
Organization: http://groups.google.com
Lines: 47
Message-ID: <6b23fda9-04c7-4113-b9e7-d5b9339a7f4d@o28g2000yqh.googlegroups.com>
NNTP-Posting-Host: 92.119.163.41
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: posting.google.com 1262166437 4601 127.0.0.1 (30 Dec 2009 09:47:17 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 30 Dec 2009 09:47:17 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: o28g2000yqh.googlegroups.com; posting-host=92.119.163.41; posting-account=xFij3AoAAAA7QjhhYpBMEnYg4RLo9pgD
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 GTB5 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!border2.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!69.16.185.21.MISMATCH!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!o28g2000yqh.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.xml:1875
Article PK: 814393

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 Posted on 2010-01-10 18:21:36.0Z
From: zakkar <zakkar@gmail.com>
Newsgroups: sybase.public.powerbuilder.xml
Subject: Re: Serialization Problems In Powerbuilder 11
Date: Sun, 10 Jan 2010 10:21:36 -0800 (PST)
Organization: http://groups.google.com
Lines: 1
Message-ID: <3f4d5318-0707-4669-84dd-789fde128273@f5g2000yqh.googlegroups.com>
References: <6b23fda9-04c7-4113-b9e7-d5b9339a7f4d@o28g2000yqh.googlegroups.com>
NNTP-Posting-Host: 92.119.163.41
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: posting.google.com 1263147696 32095 127.0.0.1 (10 Jan 2010 18:21:36 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 10 Jan 2010 18:21:36 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: f5g2000yqh.googlegroups.com; posting-host=92.119.163.41; posting-account=xFij3AoAAAA7QjhhYpBMEnYg4RLo9pgD
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 GTB5 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!newsfeed.news2me.com!nx02.iad01.newshosting.com!newshosting.com!69.16.185.21.MISMATCH!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!f5g2000yqh.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.xml:1882
Article PK: 814400

ANYONE FROM SYBASE ????


Bruce Armstrong Posted on 2010-01-11 05:55:15.0Z
From: Bruce Armstrong <NOCANSPAM_bruce.armstrong@yahoo.com>
Newsgroups: sybase.public.powerbuilder.xml
Subject: Re: Serialization Problems In Powerbuilder 11
Reply-To: NOCANSPAM_bruce.armstrong@yahoo.com
Message-ID: <d7flk59qqdrmq3s9ufs1p4p6nifl9ik72k@4ax.com>
References: <6b23fda9-04c7-4113-b9e7-d5b9339a7f4d@o28g2000yqh.googlegroups.com> <3f4d5318-0707-4669-84dd-789fde128273@f5g2000yqh.googlegroups.com>
X-Newsreader: Forte Agent 5.00/32.1171
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Date: 10 Jan 2010 21:55:15 -0800
X-Trace: forums-1-dub 1263189315 10.22.241.152 (10 Jan 2010 21:55:15 -0800)
X-Original-Trace: 10 Jan 2010 21:55:15 -0800, vip152.sybase.com
Lines: 20
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.xml:1883
Article PK: 767961

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 <zakkar@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