Hi all,
I'm trying to create a web service with the following structure:
1. Header Record (only one record)
2. Order Header (1 to many)
2.1 Order Details (1 to many for each order header)
2.2 Attachments with pictures (pdf, png, jpg, etc.) (1 to 2 for each order header)
3. Return Status (only one)
3.1 Errors (Code and description) (0 to many for each Header Record)
The Web sevice is to be deployed on Iseries but it is consumed outside (anyone outside, call the web service passing the parameters and have a return status OK or ERROR with the section 3.1 populated).
So, for this, I creating a EXCEXTFUN type MOD RP4 with MIAP. For the parameters, the first is one *array for Header Record passed as RCD; The second is another *array for Order Header passed as RCD Array; the problem is the third parameter, how to fit between the records of the second parameter?
Another problem is how to deal with attachments?
Thanks in advance,
Rui