ESB
13.2 13.1 13.0 12.2 12.1 12.0 11.0
13.2 13.1 13.0 12.2 12.1 12.0 11.0

Generating XML Beans

  1. Enable the Generate XML Beans option in the Ports Schema Structure panel.

    image2020-4-13 14:15:54.png

  2. After creating the microservice, register the microservice.

  3. In eStudio open Java Perspective and navigate to the microservice in the Package Explorer panel.

    Java Classes related to the schema gets generated.

    image2020-4-13 14:19:41.png

  4. In the BookStore document, the input can be parsed in different ways (XML as string, file, etc) as seen in the fgure above.

  5. Open the "RequestProcessor.java" class under the com.fiorano.esb.service package.

  6. Users can access input in this class and can modify it accordingly.

    Sample

    image2020-4-13 14:30:2.png

  7. Re-register the microservice again.

  8. A sample application is created with Feeder, custom microservice and Display as below.

    Sample Application

    image2020-4-13 14:31:50.png

  9. When the application is launched, the following scenario can be seen; the ouput is generated in the Display microservice according to the input processed in RequestProcessor.java class as mentioned in Step 6.

    image2020-4-13 14:34:35.png

Refer to the Creating Microservices from Fiorano eStudio for steps involved in creating custom microservice.