Yes, I believe that is the problem but I don't see a place to designate Color_Data to be output. Color_Data only shows up on the input mapping display and nothing is changeable. Do I need to do something different in the service program or am I missing something somewhere else?

On 10/31/2019 9:59 AM, Nadir Amra wrote:
Just to clarify, Color_Data must be designated as an output parameter.
The information you give seems to indicate the it is an input parameter.

"WEB400" <web400-bounces@xxxxxxxxxxxxxxxxxx> wrote on 10/31/2019 09:56:40

From: "Nadir Amra" <amra@xxxxxxxxxx>
To: "Web Enabling the IBM i \(AS/400 and iSeries\)"
Date: 10/31/2019 09:57 AM
Subject: [EXTERNAL] Re: [WEB400] Help with IWS service deployment
Sent by: "WEB400" <web400-bounces@xxxxxxxxxxxxxxxxxx>

Correctly me if I am wrong....

Since you only have one input parameter that is being injected from data
in URL, but you show 2 input parameters, it is probably because you did
not indicate that Color_Data is not an output parameter.

"WEB400" <web400-bounces@xxxxxxxxxxxxxxxxxx> wrote on 10/31/2019

From: Kelley <>
To: web400@xxxxxxxxxxxxxxxxxx
Date: 10/31/2019 08:13 AM
Subject: [EXTERNAL] [WEB400] Help with IWS service deployment
Sent by: "WEB400" <web400-bounces@xxxxxxxxxxxxxxxxxx>

Hi all,

I'm trying to deploy an IWS service for the first time using a service
program that I created. The service program has two sub-procedures,
return production yield values. The first returns yield data by color
code (which in our world is material). The second returns yield data
production line number. Both work normally when bound with an RPGLE

The service program is called WS100I, the two sub-procedures are
ColorYield and LineYield. The rest of this focuses on ColorYield as
that's the one I'm working with.

The PR/PI of ColorYield looks as follows:

//-- Prototype Definition ----------
Dcl-pr ColorYield;
Color_Code Zoned(3:0);
Color_Data Likeds(Yield_Info);

//-- Procedure Interface Definition ----------
Dcl-pi ColorYield;
Color_Code Zoned(3:0);
Color_Data Likeds(Yield_Info);

Color_Code is the input and Color_Data is the output.

The DS Yield_Info looks as follows:

//-- Data Structures ----------
Dcl-ds Yield_Info Template;
Color_Dsc_Short Char(5);
Color_Dsc_Long Char(10);
Num_Starts Zoned(5:0);
Num_Firsts Zoned(5:0);
Yield_Percent Zoned(5:2);

I'm using the Deploy New Service wizard on my 7.1 system. My issue
starts when I'm specifying the name for the service (step 3 of 9 on my

I've set the resource name as WS100I and the service description as
WS100I. But I'm not sure how to set the URI path template. Right now,
it's looks like:


When I get to step 5 of 9 (specifying resource method information), I
get the following 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.

The Input Parameter Mappings look like:

Parameter Name: Color_Code
Data Type: Zoned
Input Source: *PATH_PARAM
Identifier: color
Default Value: *NONE

Parameter Name: Color_Data
Data Type Struct
Input Source: *NONE

For the second parameter, none of the fields are changeable, they do
allow input.

I'm not sure what I'm doing wrong at this point. Perhaps the error is
related to not including the second parameter in the URI path
but I can't figure out how to define the regular expression for a data

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
wXV40qc569lczzQhp35Xcmr0rUmAS900&e= .

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2021 by 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.