Breakdown of the rest.context Scenario
When a REST Request is sent to the
REST-Java-REST
App with the HTTP Headers (for example,
bookName
and
bookID
) using the SOAP UI project
context-REST-Java-REST-soapui-project.xml
:
- They are mapped to context parameters that can be retrieved in the Java IT Implementation (“Java1 (service-inbound)” in the Runtime Node logs shown later).
- The new basic header values and a collection of headers are sent to the REST-Java App via context parameters (“Java1 (reference-inbound)” in the Runtime Node logs shown later).
- The headers are retrieved in the REST-Java App’s Java IT implementation (“Java2 (service-inbound)” in the Runtime Node logs shown later).
- New outbound headers are set in the REST-Java App’s Java IT implementation (basic and bag) to be sent back to the REST-Java-REST App (Java2 (service-outbound) in the Runtime Node logs shown later).
- The headers sent by REST-Java App are retrieved in REST-Java-REST App’s Java IT implementation (“Java1 reference-outbound)” in the Runtime Node logs shown later).
- Some headers are set in REST-Java-REST App’s Java IT implementation to be sent back to the originating client (“Java1 (service-outbound)” or “Java1 (service-fault)” in the Runtime Node logs shown later, depending on the value of “storename” (“success” and “fault” respectively)).