B2B Service

Get Involved. Join the Conversation.

Topic

    John Wilson Cusi
    Error integrating to Integration Cloud REST Web Service.
    Topic posted September 30, 2019 by John Wilson CusiBronze Medal: 1,250+ Points, tagged Integration 
    6 Views
    Title:
    Error integrating to Integration Cloud REST Web Service.
    Summary:
    Receiving error executing GET method using custom Integration Cloud Web Service
    Content:

    Hi All,

    We registered a custom Integration Cloud REST Web Service in Engagement Cloud and created a groovy to execute GET method. However we are getting this error:

    • oracle.binding.expr.ServiceInvocationException: JBO-29000: Unexpected exception caught: oracle.adf.model.connection.rest.exception.RestConnectionException, msg=JBO-57001: Invocation of service URL used in connection failed with status code 415 Unsupported Media Type

    We tested the same endpoint using Postman and it works fine. We also had the web service checked and it is returning json. We also tried adding "Content-Type: application/json" and "Accept:application/json" in the request header but the same error occurs.

    Version:
    19B
    Code Snippet: