IWS and input parameters...

Robert Rogerson <[email protected]>
Newsgroups gmane.comp.systems.as400.web
Message-ID <CAB_EQWsVEf_6u9KKX6q=hz0jE5Qjd-_zkUaQ-ogP6p56ChWgHQ@mail.gmail.com>
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?

Thanks, Rob
-- 
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.