000100 01 PERSON.
000200 05 PERSON-FIRST-NAME PIC X(10).
000300 05 PERSON-LAST-NAME PIC X(10).
000400 05 PERSON-COUNTRY PIC X(02).
000500 05 REQUEST-TYPE PIC X(01).
save the above to a file with the extension .cpy e.g. person.cpy
This is a very simple person definition - X --> alpha.
In this scenario we receive a message that adheres to the definition in the Cobol Copybook.If it is of request type "C" (Create) we will route to the create operation of the Person business service.If it is of request type "U" (Update) we will route to the update operation of the Person business service.If it is of request type "D" (Delete) we will route to the delete operation of the Person business service. We will now implement what will be our OSB Business Service.
Create Person Web Service
In JDev simply create a Java class that implements 3 methods -
Create a new App server connection
Expose as a web service and deploy to the WLS instance running OSB.
Test the web service via the WLS console e.g. localhost:7021/console --> deployments --> test etc.
Create an OSB project with the following folder structure -
Create a new MFL in the MFL folder -
Double click on the newly created file to start Format Builder.
Import Cobol Copybook...