Re: IWS and input parameters...

Robert Rogerson <[email protected]>
Newsgroups gmane.comp.systems.as400.web
Message-ID <CAB_EQWubjXcVx-wiZeoH3PpYpqOOfNi2GrPObcBqHNELNYF2Qw@mail.gmail.com>
Nadir, other than your tutorials I haven't been able to find much
documentation on IWS.  Especially if the program/service program is
RPGLE/SQLRPGLE.

Do you have a link to where I should be looking?

Thanks,

Rob

On Mon, Dec 14, 2020 at 3:25 PM Nadir Amra <amra-r/[email protected]> wrote:

> Which  parameters are  input  and  which output?
>
> And  "_length" suffix  should  be  "_LENGTH"
>
> Assuming  pFilterDs is  input,  you may  want  to  define a  length  field
> for it as well so that  you  know  how many  entries  are being passed in.
>
>
> "WEB400" <[email protected]> wrote on 12/14/2020 08:24:21
> AM:
>
> > From: Robert Rogerson <[email protected]>
> > To: "Web Enabling the IBM i (AS/400 and iSeries)"
> <[email protected]>
> > Date: 12/14/2020 08:24 AM
> > Subject: [EXTERNAL] [WEB400] IWS and input parameters...
> > Sent by: "WEB400" <[email protected]>
> >
> > I want to have a filter(s) for my api.
> > An individual filter is defined as
> >
> > dcl-ds filterTmp template qualified;
> >   type char(20);
> >   value char(20);
> > end-ds;
> >
> > But there may be multiple occurrences of filter.  For example,
> >
> > 'Warehouse': '95,96,97'
> > 'Type':'Shipments'
> > 'DateRange': 'LastWeek'
> >
> > I was hoping to do something like
> > dcl-pi *n;
> >   pFilterDs likeds(filterTmp) dim(10) const;
> >   transactionDs_length int(10);
> >   transactionsDs likeds(transactionsTmp) dim(1000);
> >   httpStatus like(httpStatusTmp);
> >   httpHeaders like(httpHeadersTmp) dim(10);
> > end-pi;
> >
> > But when I try this on Step 5 of 9 on the Deploy New Service Wizard I
> get
> > error
> > *Error:* ZUI_54411: The HTTP method must be PUT or POST when there is an
> > input parameter that is not being injected with a value.
> >
> > How should I be doing this?
> >
>
>
> --
> This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
> list
> To post a message email: [email protected]
> To subscribe, unsubscribe, or change list options,
> visit: https://lists.midrange.com/mailman/listinfo/web400
> or email: [email protected]
> Before posting, please take a moment to review the archives
> at https://archive.midrange.com/web400.
>
>
-- 
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: [email protected]
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.