-
1. Re: how to use Switchyard Http and Rest easy Binding
jaysensharma Nov 20, 2015 12:15 PM (in response to ramandeep)1 of 1 people found this helpfulWill this demo help, It demonstrates the usage of RESTEasy Component's REST binding features. It binds two SwitchYard services over REST URLs that can be accessed by any REST based client. One of them also acts as a client. When a message arrives to the Order endpoint OrderService will be invoked.
https://github.com/jboss-switchyard/quickstarts/tree/master/rest-binding
-
2. Re: how to use Switchyard Http and Rest easy Binding
ramandeep Nov 22, 2015 7:19 AM (in response to jaysensharma) -
3. Re: how to use Switchyard Http and Rest easy Binding
jaysensharma Nov 22, 2015 7:32 AM (in response to ramandeep)1 of 1 people found this helpfulThe error which you mentioned in the Screenshot is related to Switchyard bug: https://issues.jboss.org/browse/SWITCHYARD-2725
As a workaround you can try creating your own custom message composer, In that custom composer users can ensure that all the request/responses are bound to a specific operation name. Please see below what is custom message composer.
Message Composition - SwitchYard - Project Documentation Editor
-
4. Re: how to use Switchyard Http and Rest easy Binding
ramandeep Nov 23, 2015 4:45 AM (in response to jaysensharma)Hi Jay ,
The Error is "The referenced Java interface for service "RestService" specifies more than one operation and the binding "rest1" does not specify which to use in the operation selector "
Now my RestService Interface has just one method
public interface RestService {
public Response getStudentDetails();
}
I am not exactly sure what would message composer class do here ?
-
5. Re: how to use Switchyard Http and Rest easy Binding
bfitzpat Nov 30, 2015 2:32 PM (in response to jaysensharma)Sorry but I was out for the Thanksgiving holiday.
The issue you describe is due to an issue (Issue Navigator - JBoss Issue Tracker) which will be fixed in the upcoming release of JBDSIS 8.0.4 (8.0.3 is out now, but 8.0.4 is on the way).
If you need to get past the issue before then, you can download the latest Luna updates before 8.0.4 is available by adding this update site - SwitchYard Tooling - Development Milestone Eclipse Update Site: 2.0.1.CR3 - and installing the latest Luna-based tooling for SwitchYard.
Hope that helps!
--Fitz
-
6. Re: how to use Switchyard Http and Rest easy Binding
ramandeep Nov 30, 2015 7:45 PM (in response to bfitzpat)Hi Brian,
I was able to pass through the above issue but now I am stuck with an another one i.e NullPointerException.
Here is the detailed explanation :
Null Pointer exception for a reference while consuming Rest service in Bean - Switchyard Project
getting a NPE on a reference in Bean Service.
Don't know why the reference has not been initialized even after using @Inject and @Reference.
Thanks
Raman