Web Service
The CA 2E 'Web Service' allows you to model a web service within a
2E model.
A Web Service has a one-to-one relationship with a modelled 2E
Service Program function.
Furthermore, a Web Service function can have zero-to-many
modelled web service instances. Each web service instance may
contain web service operations for each procedure within the modules
that comprise the associated SRVPGM.
The best way to handle webservice in iseries is to do it in RPGLE.
Please see following document.
Download RPGLE Webservice document