|
From: anshul narang <narang.anshul@xxxxxxxxx><web400@xxxxxxxxxxxxxxxxxx>
To: "Web Enabling the IBM i (AS/400 and iSeries)"
Date: 06/11/2019 02:17 PMIWS.
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
an
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
array, or more than one input parameter is a structure, or there is aparameters
primitive input parameter with a type other than "int", "char", "byte",
"float", "packed" or "zoned". In this situation only Wrap input
can be selected or you can update your program and try again.]Whether toarray,
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
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 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.