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



Only one parameter is allowed to not be injected from an input source.

And if you have a structure as an input parameter, then your only options
for HTTP methods are POST and PUT.

So in your case, since you have a URI with template variables you want to
inject into parameters, you MUST redefine parameters so that there is only
one structure (the structure may have any number of nested structures).

And I think you are trying to inject a template variable into a structure,
which is not allowed. You are only allowed to inject values into
primitive types, like a char type.


"WEB400" <web400-bounces@xxxxxxxxxxxxxxxxxx> wrote on 06/11/2019 02:16:14
PM:

From: anshul narang <narang.anshul@xxxxxxxxx>
To: "Web Enabling the IBM i (AS/400 and iSeries)"
<web400@xxxxxxxxxxxxxxxxxx>
Date: 06/11/2019 02:17 PM
Subject: [EXTERNAL] [WEB400] IWS:Multiple data structures Input in
web-services
Sent by: "WEB400" <web400-bounces@xxxxxxxxxxxxxxxxxx>

HI All

I am facing peculiar situation as I have program which has multiple data
structures in web services.

dcl-Pi main ;
p Packed(10);
Mode Char(1);
File Char(15);
HEADR_IN likeDS(t_Headquarters_Service);
BILL_IN likeDS(t_BillTo_Service);
HEADR_OUT likeDS(t_Headquarters_Service);
BILL_OUT likeDS(t_BillTo_Service);
Error Char(1000);
Status Char(1);
end-Pi;


So while deploying the web services using IWS , which method should be
used to pass these data structures. I am getting the following error in
IWS.

Procedure name: MAIN
URI path template for resource: /{p}/{Mode}/{File}/{HEADR_IN}/{BILL_IN}
HTTP request method: GETPUTDELETEPOST
URI path template for method: - Other -or...*NONE
HTTP response code output parameter: *NONE
HTTP header array output parameter: *NONE
Allowed input media types: - Other -or...*ALL*XML*JSON*XML_AND_JSON
Returned output media types: - Other -or...*XML*JSON*XML_AND_JSON
[image: ZUI_54401: The procedure may contain an input parameter that is
an
array, or more than one input parameter is a structure, or there is a
primitive input parameter with a type other than "int", "char", "byte",
"float", "packed" or "zoned". In this situation only Wrap input
parameters
can be selected or you can update your program and try again.]Whether to
wrap input parameters:
Wrap input parameters
Do not wrap input parameters

Input parameter mappings:
Parameter nameData typeInput sourceIdentifierDefault Value
P packed - Select -*QUERY_PARAM*PATH_PARAM*FORM_PARAM*COOKIE_PARAM
*HEADER_PARAM*MATRIX_PARAM*NONE - Other -or...*NONE
MODE char - Select -*QUERY_PARAM*PATH_PARAM*FORM_PARAM*COOKIE_PARAM
*HEADER_PARAM*MATRIX_PARAM*NONE - Other -or...*NONE
FILE char - Select -*QUERY_PARAM*PATH_PARAM*FORM_PARAM*COOKIE_PARAM
*HEADER_PARAM*MATRIX_PARAM*NONE - Other -or...*NONE
HEADR_IN struct *NONE
BILL_IN struct *NONE


ZUI_54401: The procedure may contain an input parameter that is an
array,
or more than one input parameter is a structure, or there is a primitive
input parameter with a type other than "int", "char", "byte", "float",
"packed" or "zoned". In this situation only Wrap input parameters can be
selected or you can update your program and try again.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.