How can I write RPG program which should fetch data from mainframe system for a file which has 4 fields let's say A,B,C & D with below length and data types:-Field Name length Data Type
A 7 NUMERIC
B 2 NUMERIC
C 5 NUMERIC
D 5 CHARACTER
Main intention is to fetch data from mainframe in to AS/400 system in the fields of this file using webservice and in XML format any idea and assistance with program code?
The above program is to introduce webservice which can fetch data in AS400 system using XML file format and through a webservice.