I'm looking at implementing a SOAP interface between two systems written in different languages (Perl and Java) to create a login function but I'd like to ask some advice as I'm finding myself confused. The cookie data needs to be munged and retrieved in Perl (the rest of this site is written in Perl but the new software is Java) and then passed to the Java login section. I have intended to do this via SOAP to a client filter which would read the username and compare it against a database and associated relationships.
As I understand it, I should be able to set up a Perl SOAP server and a Java client (I've installed Axis2 onto Tomcat) to receive the data across so that the client will understand it. Would I be over-egging the pudding somewhat by attaching to this to a JAAS login or ought I to stick to a servlet filter to receive the data and then to open the resource?