have you added rest service in CAS using spring?

Thanks

Eddú Meléndez Gonzales
[email protected]




On Thu, Mar 7, 2013 at 3:57 PM, KaTeLmE <[email protected]> wrote:

> I see the CAS restlet mapping using Noelios framework as wiki suggest.
>
> To define a new rest service using that mapping you need:
>
>    1. Create a bean that extends org.restlet.resource.Resource (see the
>    source of already CAS defined restlet services to imagine your template,
>    
> https://github.com/Jasig/cas/tree/master/cas-server-integration-restlet/src/main/java/org/jasig/cas/integration/restlet).
>    2. Map it as attachment entry into restlet-servlet.xml
>
>
> There're much stuff about restlet framework. I found
> http://www.workreloaded.com/2012/07/spring-restlet-integration-a-complete-example/using
>  Google. It is a good start point.
>
> I hope will be usefull. I never develop a restlet service. I allways use
> resfull with Spring MVC and Castor / JABX to transform results to xml
>
>
> 2013/3/6 Eddú Meléndez Gonzales <[email protected]>
>
>> Hi,
>>
>> I attached files requested. Just to clarify, I have added cas's rest
>> successfully but I would like to create another service using Spring... I
>> have my own component scan.
>>
>> I hope you can help me.
>>
>> Thanks in advance.
>>
>> Eddú Meléndez Gonzales
>> [email protected]
>>
>>
>>
>>
>> On Wed, Mar 6, 2013 at 5:41 AM, KaTeLmE <[email protected]> wrote:
>>
>>> Are you using Noelios restlet???
>>>
>>> The commonly reason for a non accessed rest service could be a wrong
>>> config. Please, can you attach your web.xml, and rest-servlet.xml config.
>>>
>>> If you are using a Spring annotated beans configuration, remember to
>>> include a component scanner to allow Spring register your annotated beans
>>> (review
>>> http://static.springsource.org/spring/docs/3.0.0.M3/reference/html/ch04s12.html
>>> )
>>>
>>>
>>> 2013/3/5 Eddú Meléndez Gonzales <[email protected]>
>>>
>>>> Hi
>>>>
>>>> I would like to know if someone in the list have created their own rest
>>>> service inside of cas.
>>>> I'm using spring annotations, but for any reason I can not access to my
>>>> own rest service.
>>>>
>>>> Thanks
>>>>
>>>> --
>>>> You are currently subscribed to [email protected] as: 
>>>> [email protected]
>>>>
>>>>
>>>>
>>>> To unsubscribe, change settings or access archives, see 
>>>> http://www.ja-sig.org/wiki/display/JSG/cas-user
>>>>
>>>>
>>> --
>>> You are currently subscribed to [email protected] as: 
>>> [email protected]
>>>
>>>
>>>
>>> To unsubscribe, change settings or access archives, see 
>>> http://www.ja-sig.org/wiki/display/JSG/cas-user
>>>
>>>
>>  --
>> You are currently subscribed to [email protected] as: 
>> [email protected]
>> To unsubscribe, change settings or access archives, see 
>> http://www.ja-sig.org/wiki/display/JSG/cas-user
>>
>>
> --
> You are currently subscribed to [email protected] as: 
> [email protected]
> To unsubscribe, change settings or access archives, see 
> http://www.ja-sig.org/wiki/display/JSG/cas-user
>
>

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to