Skip to Main Content

Question Documentation Policy Dev Guide - Exercise "Rest to Soap"

VictorJaburFeb 13 2017 — edited Feb 16 2017

Hello Guys,

I'm trying to do the exercise inside the documentation "Oracle API Gateway Policy Developer Guide_E65461_01.pdf"

https://docs.oracle.com/cd/E65459_01/dev.1112/e65461/content/general_soap_to_rest.html

I have a basic question but I've lost myself in this part:

Exercise: Transform a Soap WS in a Rest API using the "REST API Repository":

HTTP Get (Rest) -> Create Xml Soap -> Invoke backend Ws Soap -> XML Response -> Transform -> Json -> Response to the caller

1 - I created my Rest API

2 - I created a "Request Policy" to transform Rest -> Xml Soap

3 - I created a "Response Policy" to transform Xml Soap -> Rest

My question is related to this two parts of the documentation:

Page 79 (Request):

Set the request policy on the REST API method

    Next, edit the REST API method GetStockQuote and set this policy as the request processing policy

Page 80 (Response):

Set the response policy on the REST API method

    Finally, edit the REST API method GetStockQuote and set this policy as the response processing policy.

I was unable to understand this steps in the documentation since they are very short and doesn't provide any picture to illustrate it.

In the following picture:

1 - How can I edit the "REST API method" in order to set my previous two policies created ? I was unable to find how to link my Rest API Method to "My 2 custom transforming policies"

2 -  What policy should be specified at the Routing tab?

  1. I specified to be called the WS Auto Generated Policy. Is it correct?

Selection_005.png

Thank you guys,

Victor Jabur

Comments
Post Details
Added on Feb 13 2017
1 comment
383 views