
Learn to build secure REST APIs on AS400 using RPG and Java Spring Boot to expose and consume data, with environment setup, connections, and repository, service, and controller patterns.
Identify the recommended installations for developing rest APIs on AS400 with RPG and Java. Set up IBM i access via PUB400, VSCode or SEU, Java SDK, IntelliJ, Postman, and JTOpen.
Compare IntelliJ IDEA and Eclipse as IDE options, and outline the essential Java components—JARs and PCML—for handing off to either a Java or RPG developer, including Spring Boot considerations.
Create a Hello World Java project in the IDE, define a Main package, and write a main method that prints with System.out.println. Learn naming conventions and package organization.
Explore primitive data types in Java, declaring variables with int, float, char, and boolean, using a sample var1 and explaining integers, decimals, single characters, and true/false values.
Explore Java data types, distinguishing primitive from non-primitive types like String, LocalDate, LocalTime, and BigDecimal. Learn why BigDecimal suits decimal and RPG numbers, and its use with JT400 for AS400.
Explore arrays as fixed-size collections in Java, initialize with {2, 3, 5}, access elements by index from 0, modify values, and note that adding or removing elements is not supported.
Learn how to create and use lists in Java, including the List interface, ArrayList, adding elements, accessing by index with get, checking size, and removing elements.
Aprende a usar mapas en java con hash map para pares clave-valor, usando put y get, y comprender int frente a Integer en un mapa de estudiantes.
Master conditional statements in programming, from if-else to switch, to evaluate expressions and control code flow. Apply these patterns to enforce business rules.
Learn while and do-while loops in Java, where while repeats while a condition holds and do-while executes at least once, with examples using sum, number, and scanner prompts.
Learn how to implement a basic for loop, control flow with break and continue, and the for each pattern to iterate lists, with practical examples.
Explore Java fundamentals by defining classes, creating objects with attributes and methods, using a main method to instantiate person objects, and displaying their information.
Define a class with name, brand, model, and speed; implement a public void method that receives an integer to increment speed, and demonstrate its use in main.
Learn how to return values from methods by building a calculator class, declaring return types, using return, and exploring void versus any data type returns and constructors.
Constructors are class methods that run when creating objects, initializing attributes and preventing null values. Use default or parameterized constructors, overload constructors for data, and distinguish parameters with this.
Explore how encapsulation in Java restricts direct access to class attributes by using private fields and public getters and setters to enforce validation and data integrity.
Demonstrates inheritance by extending a base vehicle class to create a car with additional properties and methods, using a constructor and super to initialize attributes like speed and doors.
Explora el polimorfismo en programación orientada a objetos mediante sobrecarga y sobreescritura, mostrando una calculadora con suma para enteros y decimales y animales con override.
Explore abstract classes and interfaces in Java, including abstract methods, concrete methods, and the contract defined by a class signature, illustrated by an animal and dog example.
Explore interfaces as contracts that define what a class must implement, with public abstract methods and optional default implementations, enabling decoupling and easier testing.
Explore practical error handling in Java and RPG by implementing try-catch blocks to manage division by zero and other exceptions, and use finally to ensure resources close.
Aprende a manejar múltiples excepciones en Java leyendo entradas con scanner, validando números enteros y gestionando errores de formato para mantener el programa estable.
Learn to create and handle custom exceptions by extending a base section, wiring a message in the constructor, validating input like age, and throwing or capturing the custom section error.
Explore what a REST API is and how it enables client-server communication over http using verbs like get, post, put, patch, and delete, with JSON as the lightweight data format.
Create a simple RPG service prototype on AS400, defining a service program that takes a name and returns a greeting, using prototypes and VSCode, with Java Spring Boot integration.
Aprende a crear un programa de servicio SRVPGM01 en RPG, definiendo un prototipo export y una interface con parámetros, para compilar y usar desde Java.
Build a service program prototype SRVPGM02P in RPG on AS/400, with separate procedures to get a customer by code, by identification, or list all customers, using a structured customer type.
Develop a service program in RPG to create a REST API endpoint SRVPGM02, building a client list from files, defining headers, loading information, and handling errors with clear variable resets.
Explore RPG procedures Get_AllCust and FindCustomer to fetch all customers or a specific customer by identification, including export readiness, interfaces, and basic error handling.
Explains how a pcml/ebxml file defines the structure and parameters to call an AS400 RPG program from an external application, detailing input/output fields, supported data types, and limitations.
Learn to generate PCML files from RPG programs by configuring the compilation to piecemeal and naming the output as program.piecemeal in a chosen path, then verify via VS Code.
Discover the JTOpen Java library, designed to connect Java with IBM i and AS400 systems, enabling interaction with HDFS, commands, files, data queues, and system values.
Learn how to create a Java project, set the SDK, generate a package and a class, include a library, and prepare a jar with dependencies.
Learn how to establish a connection to an AS400 from Java by creating a connection object with system name, credentials, and program path, then prepare to invoke the service program.
Learn to configure and invoke an RPG program on AS400 using PCML from Java, including setting parameters, handling results with get and set value methods, and basic try/catch error management.
aprende a ejecutar un programa de servicio de AS400 desde Java, pasando un nombre y obteniendo un saludo, configurando credenciales y ruta, y gestionando errores de conexión.
Optimize AS400 REST API development with RPG and Java Spring Boot by externalizing credentials, using default library paths, and defining clear input and output for flexible, simple service design.
Generate a Java jar by configuring an IntelliJ build artifact, using the main class, and naming the artifact m01 to complete the REST API project.
Configure the SRVPGM02 Java project for AS400 REST APIs, set up the project structure, library, and jar artifact, and define the package and input/output fields to start building.
Create a Java class for the ds_customer structure named customer, define properties like name, last name, address, and date of birth as BigDecimal, and implement a toString for printing.
Shows how to implement a getcustomer method in a customer class for AS400 with RPG and Java Spring Boot, including establishing a 400 connection and invoking a program document.
Implement a private get_customer method in the customer class that accepts two parameters and sets id, name, last name, and address using get string value.
Handle AS400 runtime errors by capturing messages from program invocation, building a message list, and presenting clear error sections to users.
Execute the program by creating a main class and method, instantiate a customer s-bpm with an id, and invoke the get customer and get out message methods to view results.
Clear and trim output variables, validate inputs, and prevent blank values to fix ou_message. The lecture demonstrates common errors and testing steps in AS/400 RPG and Java Spring Boot contexts.
Learn to optimize AS400 connections by using a connection pool, configuring max active connections, and safely disconnecting all services to handle high request loads without excessive memory usage.
Learn how to change RPGLE data structures in APIs, regenerate prototypes, and update fields like last name and locale to prevent memory issues when extending structures.
Implement a get all customers method that returns a list of customer objects, populating fields like name, last name, birth, and address while handling a pcmle program call and errors.
Develop the GET_CUSTOME2 procedure to retrieve all customers or by identification from an AS400 RPG backend via a Java Spring Boot REST endpoint.
Explore how an AS400 RPG program returns an integer value and how to access it with a getter after the call, including handling error code transformations.
Fix SRVPGM02 demonstrates debugging a service program in an AS400 REST API using RPG and Java Spring Boot, declaring an identification variable, and ensuring a client not found returns zero.
Aprende a debuggear un programa de servicio en AS400 con RPG y Visual Studio Code, establece breakpoints y verifica la información de cliente por ID paso a paso.
Configure Spring Boot to build a REST API, selecting Spring MVC dependencies, and generate a basic project with a controller, service, and repository layers.
Create a hello world service using Spring Boot, wiring a simple greeting method in a service class and exposing it via a controller to handle a name parameter.
Create a rest controller with a get mapping and a path variable to greet users, using a greeting service via dependency injection, and test with postman on localhost.
Configure a Java Spring Boot project for a REST API on AS400 with RPG, setting dependencies and controller and service layers with a client library and hot reload.
Design a customer data model and a customer response for a rest service, outlining attributes like name, last name, birth date, and address, plus json error handling and result lists.
Implement the getAllCustomers service using the library, without a repository, to fetch customers. Map library results to the customer model, including name, last name, birth date, and address, using BigDecimal.
Create a customers controller with @Controller and @RequestMapping, expose a get mapping returning a list of customers from the service, and introduce a CustomerResponseList for code and message.
Adapt the customers API to return a structured response with code and message, populate the result with a customers list, and validate with Postman.
Develop a get customer by code method in the service and controller, map customer data, and expose a REST get endpoint that returns a customer response.
Test the customers API getCustomerByCode in an AS400 RPG and Java Spring Boot setup using Postman, verify customer name and address, and handle not found and server errors.
Implement the get customer by identification service and its controller route to return a customer's name, surname, birth date, and address using a library mapper.
Fixes to the customers API (SRVPGM02) using RPG and Java Spring Boot by debugging Postman responses, managing connections, and handling HTTP 400 error codes for robust service deployment.
Explore how to connect to AS400 with rest APIs using RPG and Java Spring Boot, and how connection pools affect performance and resource usage.
Introduces a mega bank API project exposing client, account, and transaction services via RPG on IBM i and a Spring Boot REST API, with endpoints for customers, accounts, and transactions.
Create a clients table for the API in AS400, outlining fields such as client code, first and last names, identification, birth date, contact info, status, occupation, income, and audit timestamps.
Create the client parameters table for the AS400 REST API, defining fields such as code, description, additional and audit fields, and organize error message storage.
Create the messages file with a four-character code and a two-hundred character description; set the code as the key, save it, and verify compilation in the library.
Examine access to a database in AS400 using a prototype-driven approach, detailing module design, file calls, and a GET_BNKCLP prototype that returns client data and SQL messages.
Create a database access model for a get operation named get_bnkcli, define the inputs and outputs, implement sql querying, handle not found and error conditions, and validate via compilation.
Develop a prototype for database access to search a client by identification using GET_BNKC2P, defining identification types as passport or cedula (or tax registry) and mirroring the core structure.
Develop the database access module to retrieve a client by code, define input and output fields and the interface, prototype, and error handling, then compile and test the api.
Configure un endpoint get para acceso a datos que devuelve un solo registro, gestionando parametros de entrada como nombre de la tabla y código.
Create the database access module for GET_BKNPAR in AS400, set up the basic structure in the database folder, and implement a parameterized get query using copied prototype code.
Finish the parameters table and implement a Q module prototype to return all parameters, enabling country, state, and city lists based on input.
Explore database access in AS400 using RPG and Spring Boot for LST_BKNPAR, declaring and opening a cursor, fetching data into an array, handling errors, and returning table parameters.
Develop a short prototype for error handling in a REST API on AS400 with RPG and Java Spring Boot, detailing the error message structure, header, and parameter handling for GET_BNKMSP.
Build data access models for the get_bnkmsg operation, executing a parameterized query to fetch a message and map results while handling error codes.
Create a reusable helper prototype GET_PARMDSP to fetch a parameter description from a table, and organize prototypes in a helpers module to avoid code duplication across programs.
Build a helpers module for the get parm dsc logic, define the parameter structure, export the prototype, handle errors, and prepare the program for future use.
Create a helper in RPG on AS400 that returns a 9-digit client code using a get set num prototype; define a four-line prototype with a sequential input and an output.
Desarrolla un helper GET_SECNUM para generar números de cliente secuenciales en AS400, leyendo el último código de la tabla y devolviendo el siguiente, con validación cuando la tabla está vacía.
Create a centralized GLOBAL_DS prototype under helpers to standardize reusable date and account structures for consistent use across the AS400 RPG and Java Spring Boot REST API course.
Create a rest api prototype in AS400 using RPG and Spring Boot to fetch a client by code, defining a structured output with client fields.
Populate test data for the AS400 rest api project by executing sql queries to load client and civil status information from three files, preparing the service program.
Learn to build a first service program to obtain client information by code on AS400, outlining domain structure, service copies, and data description transforms.
Define variables, set up a helper table for parameter codes and descriptions, and implement an internal procedure to validate the client code input, returning an error code when invalid.
Implement business logic to fetch a client by code: validate inputs, call the service, retrieve full client data (names, contact, birth date) from the database, and assemble a coherent response.
Obtain a client by code and return civil status and income source descriptions via a description helper. Prepare for compilation and GitHub upload in the next video.
Navigate the compiler workflow by addressing warnings and errors to improve the service program's compilation. Plan next steps by creating directories for the next video and finalizing the service program.
Create the link directory and assemble modules for the final service program, then compile and verify the service is generated with get by code, messages, parameter model, and helper.
Implement an error subroutine at the end of service programs to log errors to a file for post-hoc tracing by apps or Java clients, aiding diagnosis without debugging in production.
Prototype a REST service to fetch a client by identification number and return full client details. Adjust API structure and field names for upcoming business-logic development.
Create a new RPG program to obtain a client by identification and validate fields, including identification type and identification number, with clear error codes for invalid input.
Retrieve client information by identification using the identification type and number, applying the business logic and preparing the module prototype for compilation.
Set up the link directory, create entries and service models to implement the get client by identification workflow, then compile the service program to confirm a satisfactory build.
The lecture presents prototyping a client creation service, defining input parameters such as names, identification, email, phone, birth date, income details, and planning for optional fields and future occupation support.
Create a client service and validate input fields such as first name, last name, and identification type, then check for existing clients before routing to the creation module.
Desarrolla una regla para validar la fecha de nacimiento al crear un cliente, calculando la diferencia en años con la fecha actual y exigiendo edad mayor a cinco años.
Implement catalog validations for client creation in AS400 with RPG and Java Spring Boot, validating marital status and income sources against catalogs and handling parameter codes and errors.
Learn to compile the service program, identify and fix errors with vscode, and implement the client creation module.
Crea un modulo para guardar clientes dentro de la carpeta clientes en prototipos, con una cabecera y parámetros simples que devuelven un código de error; añade models en el servidor.
Configure a reusable module to save customers by defining the client model and an output file, connected to a service program with prototypes and helpers.
Implementa un módulo para guardar clientes mediante una estructura de salida, abre el archivo, escribe el registro y maneja campos como código de cliente, fecha de nacimiento y auditoría.
Resolve compilation errors in the client save module by tracing paths, fixing copy references, and integrating prototypes, models, and the client service for a working rest api.
Develop a client module inside the service program on AS400, implementing get operations, validation parameters, and identification-based search, and set up the prototype in the next video.
Develop a client update prototype for a service program, defining input fields like names, identification, contact details, birth date, civil status, income, and occupation, plus a code-based client lookup.
Configure the client update flow for the AS400 REST API by setting up the service program, defining the prototype structure, and implementing a validation routine with error handling.
Actualización de cliente con validaciones: verifica código en base de datos, impide campos en blanco y valida correo, teléfono y fecha de nacimiento para evitar edades menores de cinco años.
Create a prototype of the client update module in the client modules section, defining input parameters and a key-based search to update a client record.
Develop a client update module for an AS400 REST API using RPG and Spring Boot, fetching a client by key, updating fields, and handling audit data and errors.
Actualiza clientes mediante la creación de un directorio de enlace y un módulo cliente, compila el módulo y prepara pruebas unitarias para evitar problemas en certificación y producción.
Shows how to design and run unit tests for an RPG service program that searches for a client by code, including prototypes, header definitions, and debugging the happy path.
Develop and validate unit tests for obtaining a client by identification, covering input id type, the get client by id logic, and success and error use cases.
Explore unit tests for the client creation service in AS400 using RPG and Java Spring Boot. Design test cases that validate identification, handle empty fields, and verify expected error messages.
Generate pcml files by selecting the program, configuring the pml output path, and compiling with the vpc compiler; adjust sml inputs and outputs for each module.
A continuación te dejo el código fuente de la sección.
Si aún no has calificado el curso por favor hazlo, esto me ayuda muchisimo a seguir creando cursos como este.
Saludos.
Create the BNKCTA table for VA accounts, detailing fields such as account number, client code, account type, currency, balance, status, branch, and open date, with account as the primary key.
Load test data into the service by running the SQL query against the provided data file, linking it to existing client records and loading all data.
Learn to access the database and fetch an account by account number, and to obtain all accounts for a client, using a simple prototype with a get method.
Implement a GET-based database access module for the accounts table, compile the code, tailor the query and error handling, and prepare to return a list in the next video.
Develop a database access module to list a client's accounts, handling multiple accounts with various statuses, and prototype a set-based list retrieval for AS400 RPG and Java Spring Boot.
Create a database access module to fetch client account states from AS400, adjust the header model and SQL prototype, implement the query, handle error 21, and compile a service-ready output.
Develop a prototype rest service to get account information, defining a structure with client code, account type, currency, available balance, status, agency name, officer, opening and last movement dates.
Build a rest service that retrieves account information, accesses the database, and returns a status code with clear error messages, using account prototypes and input validation.
Develop a simple prototype module to fetch account information, using a get access info module and a parameterized account input to return a structured account data payload.
Develop a service module to fetch account information in AS400, handling database access and account type descriptions, agency codes, and the sequence number.
Continue building the account information module for AS400, mapping state, currency, and available balance, using client code and last transaction date to compose the account description.
Build a service program to retrieve account information by wiring the account, message, and description modules in the link directory, then compile and test with sample service programs.
Develop unit tests for obtaining account information via a get account service in an AS400 RPG and Spring Boot API. Validate the happy path and invalid account scenarios.
Develop a prototype for a REST service that retrieves all accounts for a client, defining an account structure with number, type, description, currency, balance, and status.
Continue building the client account statement service by implementing the service program entry point and the prototype. Adapt the design to include an error path for an invalid client code.
Este módulo para obtener todas las cuentas de un cliente utiliza acceso a base de datos y transforma la lista, asignando descripciones y códigos de cuenta para estado de cuentas.
Develop a rest api for AS400 to fetch all client accounts by building a service program, configuring a link directory, and wiring account retrieval.
Learn unit testing for retrieving all client accounts in an AS400 REST API. Explore test setup, prototyping, happy path scenarios, and invalid client error handling.
Prototype a service to create an account, define the input structure with client code, account type, currency, agency, and account officer, and return the generated account number.
Desarrolla la lógica de un servicio para crear cuentas en AS400, con validación de datos, configuración del servicio y manejo de la estructura de la cuenta.
presenta un servicio para crear cuentas con validaciones de tipo de cuenta, moneda y agencia en AS400, usando tablas parametrizadas y gestionando códigos de error.
Create an account in AS400 by implementing a module with RPG and a Java Spring Boot REST API, handling account data, date fields, currency, status, and service integration.
Create a normal validation procedure to generate a unique account number, formatted from agency and timestamp digits, and expose it as a reusable, exportable service module for account creation.
Explore building a create account service module on AS400, handling client inputs, returning the account number, compiling the service program, and testing with various models in a stepwise workflow.
Develop unit tests to create an account through the service, validating input structure, the success path, and error handling for invalid currency and account type.
Generate pcmls by compiling with modal XML, save in pcml directory with lowercase extensions, and implement two service programs to fetch and create account transactions, segmented by days in 2020.
Create a bnktrn file for transactions. Define fields for account number, transaction type, sign, amount, date, time, and reversal flag, plus audit fields and search keys for account and date.
Create a logical file ordered by account and reference with a reverse flag, define key fields, and associate it to the file, illustrating the initial structure.
Develop a service to retrieve account transactions by date range with pagination, and define input/output structures for a list of transaction movements including date, time, value, description, type, and sign.
Develop a REST service to fetch account transactions with robust input validations, including account number checks and date range validation, using AS400 RPG and Java Spring Boot.
Compile this model to validate there are no errors, fix copy issues, ensure transactions are plural, move the service folder, and outline the code in the next video.
Explain pagination by showing how to fetch only a page of recent transactions, use a temporary intermediate table to store ordered blocks, and query by page to reduce main-table load.
Create a temporary Trnwrk table on AS400 with fields for account, reference, page, record, amount, and description; define the keys and compile the program.
Develop a prototype module to obtain an account's transactions with a cursor loop, using SQL selects and fetches, and load results into a temporary table for final processing.
Learn to fetch account transactions by building a composite, time-bounded reference from two parts, paginate results with twenty records per page, and refresh references to prevent duplicates.
Integrate a new module into the account transactions service, configure input fields and references, and handle cases where no data is returned by recording to a temporary file.
Implement a rest service to fetch account transactions by reading data fields such as date, amount, and description, populating a response list, with basic pagination validation.
Create a link directory and assemble a service program to fetch account transactions on AS400, wiring modules like set, move, get, and message retrieval, then compile a test program.
Load test data into the BNKTRN transactions table by running the provided SQL in Visual Studio Code, which inserts the data and yields 93 records to support the transactions module.
Develop unit tests to fetch account transactions by building a test program, configuring the transaction service, and validating inputs with queries while debugging and paging through results.
Ejecuta pruebas unitarias para obtener las transacciones de una cuenta, cubriendo casos de uso de paginación y filtros de fecha desde hasta, con validación y verificación de resultados.
Describe a service that creates a transaction, accepts a payload to set the type accounting or reversal and reference, and supports multi-item transactions with debits and credits.
Prototype a rest service for registering transactions, defining input fields (unique reference, sequence, type, code, description, amount, currency, transaction list) and a structured output with per-transaction validation errors.
Develop a transaction service for AS400 RPG with Java Spring Boot, implementing input validations, reference checks, error handling, and creation or reversal of transactions.
Validate a list of transactions for a REST API service, iterating over items, checking account active status, transaction type, nonblank description, positive amount, and currency, with a response structure.
Create a transaction error handling module that records errors, defines input sequence and error code, uses an internal error structure, and returns a structured response.
Learn to compile this program and handle errors in a transaction, including error messages and codes like 26, to indicate when the transaction could not be processed.
Develop a transaction recording module for AS400 REST APIs that first updates the customer account balance (debit/credit) and then records the transaction.
Create a transaction and update the account balance by updating records in files. Iterate the transaction list with a for-each to adjust the balance and update the last transaction date.
Create and record a transaction using a structure for account, description, type, sign, amount, date, time, user, and timestamp, then write the record. Return error code 22 if not found.
Compile the transaction module, fix two errors in the prototype transaction model, and learn how it handles the transaction and updates the client state; next video covers reversal.
Develop a reverse transaction module identical to the original, clone the transaction prototype, validate by reference, and record the reversal with updated description, sign, and balance log using postman.
Implementa un módulo para revertir una transacción y actualizar el saldo de la cuenta del cliente. Ajusta el saldo por débito o crédito y actualiza la última transacción.
Compile the service to create a transaction, ensure the program compiles on the first try with no errors, and preview calling two modules and creating directory in the next video.
Create an AS400 service to handle transactions, including create and reversal paths, by wiring service modules, invoking linked components, and generating the directory for the service.
Aprende a implementar pruebas unitarias para la creación de una transacción, construyendo un programa de prueba con validaciones, referencias por timestamp y operaciones de crédito y débito en cuentas.
Perform unit tests for creating a transaction, including debit and credit transfers, reference validation, and balance updates. Learn to set up, compile, run, and debug test cases.
Demonstrates generating pcml files from a transaction service using a compilation command, setting the efs path, creating and organizing the sml folder, and updating input and output fields.
Discusses the limitations of generating pcml with sqlrpgle for rpa programs and demonstrates using visual studio code to program by files locally, as the course moves toward spring boot programs.
Begin a REST API project for AS400 using RPG and Java Spring Boot, setting up a service program to handle client data and creating a Java package structure.
Create a ds_outgetcliente response class in Java by defining private fields for id, phone, email, birth date, income, and income source, with getters, setters, and a toString.
Create a 'Get client by code' class to call an AS400 service program, define input/output fields, and prepare an invoke method that passes the customer code with credentials.
Configure and invoke a pcml call on AS/400 by defining the service program path, creating a program call document, and setting input parameters with error handling in a try-catch.
Learn to set IBM i program response values by extracting fields from the response structure, including program name, message, error description, and return code, with proper type casting.
Learn to handle errors from IBM i by using a message list, iterating multiple errors, exposing details with getters, and invoking a service program via REST.
Create a test class with a main method, obtain a connection from a 400 connection pool, invoke the service program, and print the result with error handling.
Generate the project jar by selecting build artifact, naming it, and sharing with Java developers; configure credentials to connect the AS400 and enable consumption of the program via the library.
Create a new Java project to enable client lookup by identification in a REST API, configuring the structure and dependencies and packaging models into a jar.
Copy the HTML file into the project and create the ds_outgetcliid response class, mapping client fields, generating getters and toString, and preparing the structure for upcoming tutorials.
Create a Java class for get client by id, define inputs type id and id number, configure AS400 program path and libraries, instantiate the program, and implement invoke with try/catch.
Set input parameters for the SRVCLI100 program on IBM i, call the service program, map the response values, and handle errors by retrieving the program messages.
Test the invoke method against an AS/400 RPG program from a Java Spring Boot REST API, using a connection pool, sending a passport-like id, and processing the returned client data.
Generate the project's jar as a build artifact. Use the output folder to run and test the application, guiding developers through the final setup.
Create a new project, configure a jar artifact, and implement an input structure with key and value fields to create a client and return the client code and message.
create a person input model with fields for names, identification, contact details, birth date, civil status, and income, stored as a list. include getters, setters, and toString.
Develop a REG_CLIENT class to invoke a remote client service, define input fields and a constructor, implement an invoke method with try-catch error handling using the SDK.
Set input values for the SRVCLI200 program on IBM i by building a list of twenty fields, accessing each field inside a structure, and using the set value method.
Set up IBM i SRVCLI200 program responses by handling input values, calling the program, retrieving the output code and error message, and returning a result with numeric casting.
Create a main class to invoke the AS400 RPG integration with a connection and credentials. Build input fields and a list of additional fields, resolve null errors, and complete transaction.
Learn to validate a client's identification using SRVCLI200 in RPG, compile a service program, and call it from Java, while preventing duplicates with a pre-insert query.
Create a new SRVCLI300 project for AS/400 and set up the package and client data structures. Define DS_INPACTCLI class with fields for personal and income data, including getters and toString.
Develop the SRVCLI300 class for AS400 integration by establishing a constructor-based connection to the 400 environment, and implement an invoke method with structured inputs and BigDecimal handling.
Explore how to test the invoke method in a Java Spring Boot REST API for AS400, constructing input data, using BigDecimal, a connection pool, printing results, and validating outcomes.
Create a Spring Boot project SATB as an intermediary for retrieving account information, and define account class with client code, type, currency, status, last movement, and a get account method.
Set up the program invocation by configuring the stream path, program parameters, and package for SRVCTA000 on IBM i, then invoke and extract response, including message and client data fields.
Test the invoke method in AS400 REST APIs with RPG and Java Spring Boot: build a main class, handle exceptions with try-catch, and use BigDecimal to verify account queries.
Build a service project to list a client's accounts by defining an account structure with currency and balance, wrapping a list of accounts, and implementing an invoke method.
Set input and output values for the SRVCTA100 program on IBM i, call it, and assemble a Java list of accounts by parsing records for account, currency, balance, and status.
Test the invoke method by wiring connections, sending user and system data, and printing the resulting client accounts list with balances, as this service handles all client accounts.
Create a new REST API project for account creation, define the account and request classes with code, type, currency, agency, and officer, and implement the invoke method.
Set input and output values for a program call by populating input parameters such as program name, code, currency, agency, and official, while handling return values and errors with try-catch.
Create and test a sub account input with code, currency, and account type, then invoke the service program using SLBM.invoke to process transactions and validate the account.
Build a rest api project for AS400 using RPG and Java Spring Boot; define input and output structures for transactions list, including account, date from, date to, and transaction fields.
Develop the invoke method to call a program on AS400 from Java, build input and output structures, and process the return values and errors.
Test the invoke method by wiring inputs in main, establishing a 400-connection pool, and invoking the program to return a list of transactions with dates, amounts, and descriptions.
Create a project scaffold for a rest transaction, define input and output structures with nested classes and lists, implement the initial invoke method, and configure dependencies.
Create an invoke method within the AS400 RPG and Java Spring Boot REST context, handling input as lists and arrays of transactions, and outlining program structure and parameters.
Process the program response SRVTRN100 by handling errors, iterating over the response list, and populating the output with program name, sequence, and error details.
Develop and test the invoke method for an AS400 RPG and Java Spring Boot REST API project, defining inputs and transactions and validating transfers.
Create and configure the bank-api Spring Boot project in Java, add web and Tomcat dependencies, enable DevTools, and structure code into application, domain, infra structure packages, then run and test.
Create an as400Connection.properties file under resources to hold the connection credentials (system, user, password) for the AS400 API, while emphasizing avoiding hard-coded credentials and loading encrypted files for the project.
Create the AS400Config spring configuration component in a config package, load properties at startup, and expose an AS400 connection pool with up to ten connections for obtaining a user/password connection.
Develop a Spring component that manages IBM i connections with a connection pool, pulls credentials from environment properties, handles login securely, and releases connections under high request loads.
Master a higher-order function that accepts a function and returns a function, enabling generic AS400 connection handling with getConnection, try/catch/finally, and release of the connection.
Define the domain model by implementing a customer entity with code, full name, identification, contact details, birth date, marital status, income type, and occupation.
Learn to load client jars into a Spring Boot project, either via a maven repository or manual library installation, then declare dependencies with groupId, artifactId, and version.
Comando para utilizar el Maven de Spring boot:
Ubicarse en el directorio del proyecto donde se encuentre el archivo mvnw y ejecutar en la tarminal el siguiente comando:
./mvnw install:install-file -Dfile=ubicacion del jar con la extension. -DgroupId=NombregroupId -DartifactId=NombreArtifactId -Dversion=Version -Dpackaging=jar
Map get client by code result to a customer using a static fromGetClient method. Build the full name by concatenating fields and define identification type constants for cedula and passport.
Create a public utility function IntTolocalDate in a utils class to convert an integer to a local date, with format validation in the customer mapper.
Copy and adapt the getcustomer by code method to create getcustomer by identification in the AS400 repository using RPG and Java Spring Boot.
Implement a public method in the CustomerRepositoryAS400 and use a mapper to fetch a client by ID, mapping code, first name, and last name.
Implement a save customer workflow in an AS400 REST API using RPG and Java Spring Boot, mapping incoming data to a new customer in the repository.
Update the customer record in the AS400 repository by receiving a customer code and data structure to modify existing information, preparing the path to the service layer.
Build a get customer workflow in a Java Spring Boot REST API for AS400 RPG, implementing a customer service, repository, and DTO mapping for code and identification.
Introduce a customer request dto in Spring Boot project, centralized in infrastructure dto package for restful contracts, detailing fields like first name, last name, id type, email, birth date.
Discover Spring Boot validations with a dependency, using not blank and size annotations to enforce nonempty names, id types, emails, and birth dates, plus a look at custom validation.
Map a customer dto to the AS400 structure with a static method, handle additional fields, and convert birth date from localdate to bigdecimal for repository save.
Demonstrates the LocateToInt utility that converts a local date to an int using date format and shows a mapper-driven flow to initialize output fields and save a customer via repository.
Implement a customer update request dto and void update method, using an infrastructure adapter to map fields like first name, last name, email, phone, birth date, marital status, income, occupation.
Learn how the customer service mapper converts a customer update dto into an AS400 update, using the repository and a populated customer object with the code and first name.
Explore how the customer controller handles http requests, routes them via get mapping and path variables to the service, and builds a generic base response dto for API replies.
Implements the getCustomerByCode endpoint in a customer controller to fetch customer information by id, returning a response entity with a customer dto and proper http status, tested locally with Postman.
Implement a rest endpoint to fetch a customer by identification using a get mapping with type id and request parameters, including validation and error handling.
Create a post endpoint in the customer controller to create a new customer from a request body payload mapped to a customer request dto, returning the new customer code.
Diagnose and fix a runtime error in the customer controller by checking logs and the postman payload. Implement phone validation and payload validation before calling the repository.
Explore payload validation for the customer controller by building a request validation class, returning structured error messages on bad requests, and testing with Postman.
Demonstrates updating a customer using a PUT mapping, with a path variable for the customer code and a request payload via an update dto, validated and processed by a service.
¿Por qué tomar este curso?
IBM i (AS400) sigue siendo una plataforma robusta en muchas empresas, pero la modernización es clave para seguir siendo competitivo. Este curso te enseñará paso a paso cómo transformar tus programas RPGLE en APIs REST modernas con Java y Spring Boot, sin que necesites conocimientos previos en Java.
Este curso está diseñado especialmente para programadores con experiencia en RPGLE que desean expandir sus conocimientos en desarrollo moderno con Java, sin necesidad de conocimientos previos en este lenguaje.
A lo largo del curso, aprenderás cómo conectar sistemas RPGLE con Java utilizando Spring Boot para construir APIs REST robustas y escalables. Exploraremos paso a paso la conexión del AS400 con Java, la gestión de datos y la implementación de servicios para consultas, creación y actualización de clientes, cuentas y transacciones bancarias.
Contenido principal del curso:
Fundamentos de APIs REST en IBM i: Conceptos clave, arquitectura RESTful y configuración del entorno de desarrollo.
Conexión de Java con AS400: Configuración de conexión con JTOpen, manejo de propiedades y gestión de conexiones eficientes.
Uso de Service Programs en RPGLE: Llamadas a programas RPG desde Java, estructura de módulos y paso de parámetros.
Desarrollo con Spring Boot: Creación de controladores, servicios, repositorios y mapeo de datos con DTOs..
Validaciones y seguridad en APIs REST: Buenas prácticas en validación de datos y manejo de errores.
Implementación de casos reales: Construcción de una api para ofrecer servicios para clientes, cuentas y transacciones bancarias.
Este curso es 100% práctico e incluye código fuente detallado, explicaciones paso a paso y ejercicios para reforzar tu aprendizaje. Al finalizar, serás capaz de desarrollar APIs REST modernas en IBM i, integrando RPGLE y Java con confianza.
¡Únete ahora y da el siguiente paso en tu carrera como desarrollador IBM i!