Article View: borland.public.cppbuilder.webservices.soap
Article #43Re: dynamic array xml missing
From: Jean-Marie Babet
Date: Fri, 13 Jun 2008 16:31
Date: Fri, 13 Jun 2008 16:31
24 lines
1880 bytes
1880 bytes
Hello Fred, I probably would need to see the code to assess but if IS_OPTN from the flag fixed the problem, it means that the runtime did not *see* that the arrays were specified. Whenever an element is optional (i.e. minOccurs="0" in the schema), we use a Setter function, SetLineItem in your case. That setter, when invoked, should also set a flag to indicate that the property was set (probably setting a variable, FLineItem_Specified, to true). The runtime then queries the LineItem_Specified method [tagged as the value to the 'stored' attribute] to determine if the item should be serialized. So, the issue could be that FLineItem was accessed directly [IOW, bypassing the setter]. Or it could be that somehow, there's a bug in the logic to invoke the stored method. If you could post a little excerpt of how the LineItem property is being set, I'd be happy to investigate. Cheers, Bruneau PS: I'll also research this issue on my end as we have several test Services in-house with optional|unbounded elements.
Technical Details
Message-ID:
<48529fa7$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<48288182$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11096a,63aaf433c7ede782 X-Google-Attributes: gid11096a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Jean-Marie Babet" <bbabet@borland.com> Newsgroups: borland.public.cppbuilder.webservices.soap References: <48288182$1@newsgroups.borland.com> Subject: Re: dynamic array xml missing Date: Fri, 13 Jun 2008 09:31:55 -0700 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 10.143.51.162 Message-ID: <48529fa7$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1213374375 10.143.51.162 (13 Jun 2008 09:26:15 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail