In this post, I am going to show how we can configure REST services in soapUI for testing.
We need to have soapUI version which supports REST (this test was performed wiith soapUI 3.6).
1. Suppose, we have a REST service endpoint like https://osb-dbpm.intra.com/dbpm1/PSLoggingRestEBF (in this case, an OSB proxy service which accepts any XML message, with no WSDL interface )
2. First, we need to create a new soapUI project , with "Add REST Service" option checked.
3. Now, we need to put the host name without the context path of the service (Over here https://osb-dbpm.intra.com )
You can also paste the full URL here and on clicking Extract Params, it will keep the resource context path only from the full URL.
5. Next, we need to add a method for accessing the new resource. Give a method name & select the HTTP Method (here POST)
6. Now, we can fire a request to the created method. Here, we need to validate few things as shown in the screen below:
- Correct host Name
- Correct full path of the resource
- Correct Media Type (here text/xml is selected as we are sending an XML msg)
** If your endpoint is that of a synchronous service, you will be able to see the response in the response panel of soapUI.
t
It 's an amazing and awesome blog
ReplyDeleteOracle SOA Online Training