Integration

Get Involved. Join the Conversation.

Topic

    logu Prasanth
    How to create a post REST service in OIC
    Topic posted March 27, 2019 by logu PrasanthSilver Medal: 2,000+ Points, tagged Adapters, Agent, API, Case Management, Cloud, Connection, Database, E-Business Suite, Events, Integration, Mapping, Orchestration, PaaS, Process, REST, SOAP, Web Services, xml 
    663 Views, 25 Comments
    Title:
    How to create a post REST service in OIC
    Summary:
    We have a requirement to create a REST service in OIC. And this service will be exposed to the client to POST their JSON data.
    Content:

    We have a requirement to create a REST service in OIC. And this service will be exposed to the client to POST their JSON data.

    Can you please provide any artifact /whitepaper/ procedure for creating simple REST service in OIC.

     

     

     

     

     

    Comment

     

    • Gokul Muruganantham

      Hi Logu,

       

      Create a REST connection in OIC as Trigger, when you use that as triggering step in your Orchestration, you can define same JSON Request and response during configuration. which can be exposed to external system while activating the Integration. Your client can access the REST endpoint and POST the data.

      You can refer below links:

      https://docs.oracle.com/en/cloud/paas/integration-cloud/rest-adapter/using-rest-adapter-oracle-integration.pdf

      https://technology.amis.nl/2016/02/02/create-an-integration-on-ics-to-expose-a-rest-api-for-a-soap-connection-for-an-external-web-service/

      Regards,

      Gokul M

    • Gokul Muruganantham

      Hi Logu,

       

      Yes, use OIC Credentials. Once you activate the integration you will get an endpoint use that as URL.

      Regards,

      Gokul M

      • logu Prasanth

        Thank you so much for your immediate response.

        we have OIC user login credentials.

        when we use that it shows below error 

        ICS-11046: Failed to connect to APIP CS with HTTP response code: 405. Please check the URL and credentials.            

        When we create a  REST connection in OIC as Trigger, In Security Policy it shows only Basic Authentication and cant asking username and password fields.                                                             

    • logu Prasanth
      When we create a rest connection as trigger service it ask to configure security policy. Under that it shows only basic authentication. When we choose basic authentication am not able to provide username and password. But it's taking automatically OIC login credentials. Is it OIC behavior??
      • BlueBell

        Hi Igou,

        REST connection as a trigger point will not ask for security policy.Please refer below screenshot.

        Just it asks for email address

         

         

        • John Graves

          The connection doesn't ask, but you will still be required to pass basic OIC creds to call the service.  I don't believe OIC supports anonymous open REST calls.  API Platform would allow the bridge and give more control over the callers and API Keys.

      • Hemanth Lakkaraju

        Yes. All OIC endpoints are protected by default.

    • logu Prasanth

      It's asking Security policy.

      • Hemanth Lakkaraju

        This should be ICS or very older version of OIC. But that doesn't matter here.

        • logu Prasanth

          it's taking automatically, OIC login credentials.

          is it OIC behavior?

          • Hemanth Lakkaraju

            Yes. As I said above.

            • logu Prasanth

              When we activate the integration, it shows a warning message.

              What is this? please let me know

              • John Graves

                Logu,

                By "warning" are you referring to the "API Platform Connection..." message?

                For REST trigger flows, OIC Integration allows you to automatically have an API setup in API Platform.  If you don't have API Platform and/or configured, you'll see this message.  You can certainly ignore it if you don't have plans to use API Platform.

                Many use API Platform to front their OIC Integration REST services so that they can then use a developer portal to expose, advertise and maintain the usage of the services and do assigns and revokes of API Keys.

                -John

                • logu Prasanth

                  As of now, I don't have a plane to configure the API Platform.

                  Now, my question is how it taking OIC user login credential as a basic authentication credential.

                  is it OIC behavior?

                   

                  • Hemanth Lakkaraju

                    I'm not sure I understand your question.

                    how it taking OIC user login credential as a basic authentication credential.

                    What do you mean by this?

                    • logu Prasanth

                      I am not using API platform.

                      when we expose the rest URI to outside it asking authentication. 

                      when we create a rest URI in security policy section, automatically taking basic authentication credential. as username and password 

        • logu Prasanth

          In rest endpoint summary screen shows operation name as default,

          Where we can choose operation ?

    • Ankur Jain

      Hi,

      Please refer the blog to publish the "POST" operation in OIC:  https://www.techsupper.com/2018/09/crud-operation-in-oracle-integration.html

      Hope this helps.

      Regards,

      Ankur