On 30-11-2008 at 10:12, Mike McNally wrote: > I've been poking around trying to figure out a good "harmonious" way > to provide a set of "web service" URLs as part of an application. By > "web service" I don't necessarily mean any particular approach (SOAP > or whatever) at this point. What I would like is to have some > mechanism that could make an incoming HTTP POST to a service URL end > up looking more-or-less like a plain old action invocation (possibly > with the payload in the form of a FileBean). > > So I'm thinking that one way to do this would be to use a filter that > does something like what the multipart filter does. It'd have to > interpret any sort of authentication header and then package up the > payload as a parameter. Does that seem like a bad idea for some > reason? I'm not terribly experienced with Stripes, and the web service > APIs I'm familiar with are implemented as independent servlets.
It seems a bit convoluted: a Filter works explicitly on a HTTP request; not on a derviate like SOAP. It's probably easier to create a protocol handler specific to each protocol, and have that handle the call to an ActionBean. The tricky bit however, is that you'll have to redo this work for every new protocol, while keeping the assumptions that ActionBean writers may make intact, like the Stripes lifecycle (and everything that it does/doesn't do). Oscar -- ,-_ Oscar Westra van holthe - Kind http://www.xs4all.nl/~kindop/ /() ) (__ ( Progress is made by lazy men looking for easier ways to do things. =/ () -- Robert Heinlein ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
