× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi All,

I am attempting to return a data structure array from a web
service. The integrated web services for i web service wizard lets me
identify how many elements are returned by specifying a variable that is
returned in a separate parameter.

My problem is that the data structure I am returning contains
several nested data structure arrays. There doesn't seem to be a way to
identify the number of elements returned for these nested data structure
arrays. The web service always returns the maximum number of elements
for the nested arrays. Most of which are empty.

Here is what it looks like:

D P57301 PI
D InOrdCo Like(PhKcoo) Const
D InOrdDoc Like(PhDoco) Const
D InOrdTyp Like(PhDcto) Const
D InOrdSfx Like(PhSfxo) Const
D OutErrCode 10A
D OutErrMsg 100A
D OutRecReturn 10I 0
D OutData LikeDs( DataDs )
D Dim( 300 )

D DataDs Ds Inz Qualified
D CommitData LikeDs(F4311Ds)
D CommitDetl LikeDs(DsDtl ) Dim(100)
D CommitText LikeDs(DsAssoc) Dim(100)
D DetlBond LikeDs(DsBond ) Dim(100)

The wizard only recognizes the OUTDATA parm and lets me specify
that OUTRECRETURN contains the number of elements. But it does not let
me specify anything for the nested DS arrays within OUTDATA.

If anyone has seen a way around this I'd really appreciate
hearing about it. If it cannot be done with the integrated web server,
can it be accomplished through WDSC? I would like to not have to change
the structure of DATADS as it is logically correct. The web developer I
am writing this for agrees but does not want to read through mostly
empty XML.

Thanks for any help...
- Steve

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.