Hi Francesco, Thanks for your answer.
I will take a look at that. Regards, German. On May 15, 2013, at 9:19, Francesco Chicchiriccò <[email protected]> wrote: > On 14/05/2013 18:04, German Parente wrote: >> Hi Fabio and all, >> >>>> 2) I have to address from my application the RBAC module getting >>>> user roles from syncope. >>>> >>>> Again, what would be the best approach ? Use java api or bare rest >>>> request calls ? >>> REST calls are the right way to do this. >> >> I am trying to use REST calls to get syncope users and roles >> information from a web service. >> >> To do that, I need to include syncope-common-1.1.1.jar, where I can >> find objects like UserTO / RoleTO, etc. >> >> The problem is that this jar is including also services sources which >> are in conflict with my war file. I would need only "client" side of >> the sources or at least, only the "to" objects. >> >> Which would be the right way to access to users and roles information >> ? Is there a sort of "only client" jar which I could include in my >> application to get the required information ? > > Hi German, > I have prepared a simple Syncope client project on github [2], which > turns useful for testing: you can check from there a working client setup. > Please be aware that: > 1. the SYNCOPE_1_1_X branch is meant to work with Apache Syncope 1.1.X > 2. you might need to adjust dependency versions in the POM file > 3. the class to look at is App.java: there you can choose whether use > Spring-based or CXF-based initialization > > HTH > Regards. > >>> [1] >>> http://svn.apache.org/viewvc/syncope/tags/syncope-1.1.1/core/src/test/java/org/apache/syncope/core/rest/ > [2] https://github.com/ilgrosso/syncopeRestClient > > -- > Francesco Chicchiriccò > > ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member > http://people.apache.org/~ilgrosso/ > >
