Create a service bus project.
Create a REST adapter on left swim lane
Provide the Resource path name
Provide the get operation and request and response schema element details.
Now drag a pipeline and choose the created wsdl file
De-select the expose as a proxy service
Open the pipeline and add a stage it it
Provide the xpath which to be sent as a response.
Rest URI:
http://hostname:2001/GetCustomerRestSBProject/RestService/cust
Format:
http://localhost:<<OSB Port>/<<proxy endpoint>>/<<resource name>>
Open in soap ui
test:
No comments:
Post a Comment