For more info, see thread below in link..
I have a POST created in IWS that has a struct (JSON) as an Input
parameter. It also uses httpStatus, and httpHeaders. We also return 2
character messages. When everything is goes well, we return 200 and in the
'body' that is returned, we receive the contents of successMessage and
errorMessage in JSON formats.
We've tried to add validation on say items and locations in the Order
(JSON) struct before actually doing anything in the code. I was thinking
we could set the httpStatus to 4xx, set errorMessage to some string, and
IWS would return the errorMessage just like if 2xx. We don't seem to get
anything back in the response.
Any thoughts? Thanks.
httpHeaders char(100) dim(10);
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
To post a message email: WEB400@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives