-
1. Re: How to integrate REST Based applications?
kcbabo Jun 17, 2013 11:52 AM (in response to udhayakumar_t)You can use any of the implementations available in SwitchYard to handle this use case. BPMN 2 or Camel would be two common examples that could easily handle dynamic routing/invocation, but the others can be used as well. The best way to get help is to create a small application which reproduces your issue and post it to the forum with details your expected and actual results with the app.
-
2. Re: How to integrate REST Based applications?
udhayakumar_t Jun 18, 2013 8:50 AM (in response to kcbabo)Keith,
Thanks for the reply.
Yes i already started this excecise. However, i could not estabilish the reference between the Bean and actual REST Service. When i click on the reference pointer it opens up a window which allows us to refer only Java,WSDL,ESB. I also tried to drag REST Endpoint and drop it on the bean but unsuccessful.
I also attached the screenshot for reference.
-
3. Re: How to integrate REST Based applications?
udhayakumar_t Jun 19, 2013 2:37 AM (in response to udhayakumar_t)I am able to see the binding option in Service component. I also had a look at the rest-binding example given in the quickstart. It is using the REST service available in the same application.However, i want to integrate a service which is available outside. Is there any way so that i can give the direct rest URL as a reference(for example, http://localhost:8000/dam/via/10.105.157.87-Test-input-TEST00001.xml/10.105.157.87-Test-input-TEST00001.xml)
-
4. Re: How to integrate REST Based applications?
kcbabo Jun 19, 2013 12:46 PM (in response to udhayakumar_t)If you want to invoke a REST service outside the application you need to :
- Add a reference to the service component (UploaderBean in your app)
- Promote that reference
- Add a REST binding to connect to the remote REST endpoint
There is an example of doing this in the rest-binding quickstart. It doesn't matter that the REST endpoint is exposed by the same application - the only difference for invoking an external REST endpoint in that application would be to add the address config element with the location of your remote endpoint:
-
5. Re: How to integrate REST Based applications?
udhayakumar_t Jun 20, 2013 5:36 AM (in response to kcbabo)Thanks for sharing these links. I already referred the second link and created reference and also created rest binding as well.
When i double click on reference it opens up the interface that i added. I couldn't find any mapping with REST End point.
At this point, i would like to understand the following to get fair idea of REST integration works.
1) how the methods available in REST End point are mapped to reference interface? Is it done automatically?
2) Should i do anymore cofiguration or manually wirte the REST method signature in the interface?