[Catalyst] Re: Catalyst and Web Services?
Gavin Henry
ghenry at perl.me.uk
Mon Feb 4 13:33:17 GMT 2008
<quote who="Aristotle Pagaltzis">
> * Gavin Henry <ghenry at perl.me.uk> [2008-02-04 12:05]:
>> If you want to provide access over SSL with auth, i.e. for
>> example a desktop app posting and retrieving info from/to a
>> Catalyst app what's the best way?
>>
>> REST or SOAP?
>
> Well, the question youâre asking is actually REST or WS-*; SOAP
> is actually just an envelope format that can be used in both
> scenarios. Of course in practice no one uses SOAP for REST
> because it adds no value that you canât get another way anyway.
OK, thanks.
>
> Anyway, between WS-* and REST, the answer is clearly REST, with
> the only exception being if you need to integrate with existing
> infrastructure that is already heavily geared toward WS-* â in
> short, youâre in a Microsoft shop.
Well, it might involve an Outlook Plugin (to right-click a calendar
entry), a Thunderbird plugin with/for Lightening/Sunbird and a taskbar app
all using wxWidgets, connecting to the central Catalyst App.
>
>> I want the same users that normalling login via a web browser
>> and get a cookie to be able to login via a "light" wee desktop
>> app or some such?
>>
>> Would you create a new interface/access point on the Cat site
>> and use REST or SOAP?
>>
>> All new to me, so excuse the dumb questions.
>
> I donât know what youâre doing, so I canât say if itâll work for
> your case, but in the very least as a source of inspiration, take
> a look at Atompub. Itâs a great example of how to structure a
> REST system, and in fact, with a little creativity, it is a close
> match for the great majority of scenarios in which people want to
> provide an API. The advantage is that there is already a bunch of
> code that implements Atompub, both on the client but also on the
> server â see Catalyst::Controller::Atompub.
Cool, thanks will look at that.
>
> But, as I said, even if it *really* doesnât fit your needs, it
> gives you an idea for how a REST service should look like.
It's bascially to login, retrieve some db entries and post them back
authenticated with a session etc. just like a normal session/cookie web
login.
>
> Regards,
> --
> Aristotle Pagaltzis // <http://plasmasturm.org/>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
More information about the Catalyst
mailing list