1 Reply Latest reply: Mar 15, 2013 10:25 PM by 991448 RSS

    OSB to RestFul with Custom Header and Authentication

    997035
      I am trying to add to OSB a RestFul service which requires authentication and custom http headers.

      I am able to register the RestFul service as Business Service with following parameter
      - Service Type: Messaging Service
      - Request Message Type: None
      - Response Message Type: Text
      - Http Request Method: Get
      - Authentication: Basic (Service Account)

      When I test the Business Service in the Test Console, I passed in the custom http header and the content type and it did return back the JSON object I was expected.

      However when I then try to create a Proxy against it with the following parameter, I had problem running it in the Test Console. Although I did pass in the http header it still complained that I didn't pass in the header. And as for Authentication, I was not even able to specify a service account like how I did in Business Service.
      - Service Type: Messaging Service
      - Request Message Type: None
      - Response Message Type: Text
      - Http Request Method: Get


      Any ideas?

      Thanks
        • 1. Re: OSB to RestFul with Custom Header and Authentication
          991448
          What type of service account are you using ? If it is static you need specify the username/password in the PS. Also you do not specify service account for a proxy service. What is the error in the logs.
          If you have to pass the HTTP header use transport headers in your request, select request type as http and then set the content type and custom http header.
          http://docs.oracle.com/cd/E21764_01/doc.1111/e15867/modelingmessageflow.htm#i1125373