Friday, July 31, 2020

How to Create Rest Mock Service in SOAP UI and use as dummy service in Jdeveloper

Mocking:

Mocking is creating virtual service that works like a real service.

It enables you to stay productive while the service is being implemented.

Mocks could be used for testing and developing the front end even when the back end is not available.

To Create Rest Mock Service in SOAP UI and we can use as dummy service in Jdeveloper

1        Create New REST Project

2        paste- http://localhost:7101

3        Rite click -> Generate REST MOCK Service

4        start this mock  service

5        Crete new REST service with new REST Mock url.

          http://localhost:8089/

we can find this host and port in property section

Please find below detailed steps to create Mock service:

S1: Create New REST Project

S2: Rename Project name (Give an appropriate name for the MockService)


S3: Rite click -> Generate REST MOCK Service



S4: Start Created Mock Service by clicking green play button

You can view this mock service is started on port 8089 (This can be random port)


Below is the response I am setting up with code value.


S5: Update Rest service with new port and test the service. Or  

Crete new REST service with new REST Mock url .

http://localhost:8089/

We can find this host and port in property section


S6: we can use same url and implement rest service in jdeveloper.

http://localhost:8089/




1 comment:

SOA Overview Part-1

  Middleware It provides a mechanism for the process to interact with other processes running on multiple network machines. Advantages...