Deval,

Because of the way most of the Web Service tools work (i.e. Axis and 
xFire client) they generally have trouble with interfaces.  What we've 
done is created a mirror interface for CentralAuthenticationService that 
replaces the method calls that have the Credentials interface with a 
concrete class (i.e. replaced Credentials with 
UsernamePasswordCredentials) and then had the implementation of that 
interface delegate to the normal instance of 
CentralAuthenticationServiceImpl without any issues.

-Scott

DEVAL SHAH wrote:
> Hello Scott,
> I have enabled CAS for webservice. Now on my client side I try to get the 
> ticket using the 
> CentralAuthenticationService.createTicketGrantingTicket(Credentials)
>
> Credentials is an interface and when I use Axis wsdl2java to create the 
> stubs it becomes a class. When i try to create a credential I create a new 
> class which extends Credentials and pass it as a parameter. But this doesnt 
> seem to be working.
>
> Is there a way to get the ticket through web service or I will have to 
> modify the CAS code.
>
> Thanks
> Deval
>
>
>
>   
>> From: "DEVAL SHAH" <[EMAIL PROTECTED]>
>> Reply-To: Yale CAS mailing list <[email protected]>
>> To: [email protected]
>> Subject: Re: Using CAS through web service
>> Date: Fri, 16 Jun 2006 18:30:41 +0000
>>
>> Hello Scott,
>> Thanks for the help. Where can I find the configuration examples of CAS and
>> xFire.
>>
>> Thanks
>> Deval
>>
>>
>>
>>     
>>> From: Scott Battaglia <[EMAIL PROTECTED]>
>>> Reply-To: Yale CAS mailing list <[email protected]>
>>> To: Yale CAS mailing list <[email protected]>
>>> Subject: Re: Using CAS through web service
>>> Date: Fri, 16 Jun 2006 14:10:20 -0400
>>>
>>> Deval,
>>>
>>> CAS can be exposed via a web service.  We've successfully used xFire and
>>> Axis.  CAS has configuration examples included for using xFire.  However
>>> you will need to do a little work to do the Interface that will be
>>> exposed as the web service.
>>>
>>> -Scott
>>>
>>> DEVAL SHAH wrote:
>>>       
>>>> Hello,
>>>> I have just started using CAS. I tested the cas.war and it works fine.
>>>>         
>>> Now I
>>>       
>>>> would like to the following:
>>>> I have a standalone desktop application. I would like this application
>>>>         
>>> to
>>>       
>>>> get a ticket from CAS server. Is this possible? It is not a web-based
>>>> application so how will this be done ? Will there be some web service
>>>>         
>>> which
>>>       
>>>> I can talk too.
>>>>
>>>> Thanks in advance
>>>> Deval
>>>>
>>>>
>>>> _______________________________________________
>>>> Yale CAS mailing list
>>>> [email protected]
>>>> http://tp.its.yale.edu/mailman/listinfo/cas
>>>>
>>>>         
>>> _______________________________________________
>>> Yale CAS mailing list
>>> [email protected]
>>> http://tp.its.yale.edu/mailman/listinfo/cas
>>>       
>> _______________________________________________
>> Yale CAS mailing list
>> [email protected]
>> http://tp.its.yale.edu/mailman/listinfo/cas
>>     
>
>
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
>   
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to