× 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.



Thanks for your suggestions Jon. I posted it here because I thought the wizard should handle it. I've used the Web Service Wizard in Web Administration for i (HTTP Admin), and I can use a variable coming back from the RPG program, to dictate how many entries are returned and the service only returns that # of entries in the XML created (I may be saying this wrong. The RPG program returns all of the entries, but the JAVA created automatically only deals with the # that is in the variable). I figured the WDSC wizard could do the same thing.


On 7/12/2013 1:00 PM, wdsci-l-request@xxxxxxxxxxxx wrote:

----------------------------------------------------------------------

message: 1
date: Thu, 11 Jul 2013 15:45:53 -0400
from: Mark Brier <mark@xxxxxxxxx>
subject: [WDSCI-L] WDSC V7 Program Call Wizard question

I have a question regarding the Program Call Wizard. The RPG program
that I am using returns an array that may or may not be completely
filled with data. I don't want to return all of the blank regards to
the web service that I am creating from this. I have tried making the
Count on the Structure be a variable that I return from the program that
has how many records have data, but whenever I run the web service I get
a Program Call Error saying the value of this field is not set. Can
this Count field contain a variable?

If this is not the appropriate place for this kind of question, please
let me know.

Mark




------------------------------

message: 2
date: Thu, 11 Jul 2013 16:07:12 -0400
from: Jon Paris <jon.paris@xxxxxxxxxxxxxx>
subject: Re: [WDSCI-L] WDSC V7 Program Call Wizard question

Probably better in RPG400 Mark because it has zero to do with the wizard - so if you want to continue the discussion let's take it there. But ...

There is no native RPG way of doing this. Variable length arrays are not supported.

The easy fix - and the one that would benefit all users of the called routine would be to use V7's RTNPARM which will automagically convert the return value to be parm 1 under the covers. This means that only a pointer gets passed and that means the length of the array is irrelevant.

If not on V7 then the answer is to change the procedure to return the active count and make the array a parm.

Anything else means that the whole array will always be passed.

The new XMLSERVICE routines have a nice approach which actually handles your scenario and might work for you but the service will not be as efficient due to the extra layer. It basically allows you to define an array as depending on a specified count value and then only builds the XML response to contain that many instances.


On 2013-07-11, at 3:45 PM, Mark Brier <mark@xxxxxxxxx> wrote:

I have a question regarding the Program Call Wizard. The RPG program
that I am using returns an array that may or may not be completely
filled with data. I don't want to return all of the blank regards to
the web service that I am creating from this. I have tried making the
Count on the Structure be a variable that I return from the program that
has how many records have data, but whenever I run the web service I get
a Program Call Error saying the value of this field is not set. Can
this Count field contain a variable?

If this is not the appropriate place for this kind of question, please
let me know.

Mark


--
Jon Paris

www.partner400.com
www.SystemiDeveloper.com






------------------------------

message: 3
date: Fri, 12 Jul 2013 08:08:53 -0600
from: "Hiebert, Chris" <chris.hiebert@xxxxxxxxxxxxxx>
subject: Re: [WDSCI-L] RDp 8.5 and Error Messages

You can use Ctrl-F5 to remove all compile messages from the source view.

Chris Hiebert
Programmer/Analyst
Disclaimer: Any views or opinions presented are solely those of the
author and do not necessarily represent those of the company.

-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx]
On Behalf Of Robert Mullis
Sent: Tuesday, July 09, 2013 9:14 AM
To: Websphere Development Studio Client for iSeries
Subject: [WDSCI-L] RDp 8.5 and Error Messages

When I compile a RPG program, I get the error view. When I double click
on an error, it takes me to the line in the source with the error. So
far, so good. When I change the line of source to correct the error and
then move to another line, it used to remove the error message text from
the source, but now it doesn't.

Is there a flag/option in the preferences I need to check? So far, I
haven't been able to find one.


------------------------------

message: 4
date: Fri, 12 Jul 2013 10:57:11 -0400
from: Jon Paris <jon.paris@xxxxxxxxxxxxxx>
subject: [WDSCI-L] Windows 7 and dnscache

Cross-posted to WDSC-L and PCTech

I'm having trouble with Win 7 dns caching and have to frequently issue ipconfig /flushdns to resolve it.

This started after I installed RDi V9. I don't recall it happening before.

It occurs whenever if I forget to disconnect before the VPN shuts down. RDi will attempt to connect when I start using it again and on failing to connect (no VPN) seems to cause a cached status of "I don't know where that is" in the local DNS and subsequently won't even try to resolve.

This is really annoying so I'm hoping there is either a Windows or RDi setting that will help.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com






------------------------------




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.