I'd like to create a Handler in the global requestFlow which is capable, in
certain circumstances, of acting as the pivot handler.  Generally speaking,
the response would be generated by the service object, in the ordinary way:
but sometimes, this Handler would decide to supply the response itself.  In
this case, the service object should *not* be invoked.  (To avoid redundant
computation.)

I tried the naive expedient of setting the pastPivot property in the
MessageContext, but this didn't quite work.  The Handler was able to set a
Response object, which was indeed propagated back to the client -- but the
service object was still invoked.

Richard Zhu asked essentially the same question a month ago (see
http://marc.theaimsgroup.com/?l=axis-user&m=106434049304967&w=2), but the
thread trailed off inconclusively.  The only suggestion was to provide this
behavior at the servlet-engine level (as a filter), which would be a burden
in our case.  (It would mean that, in order to reason about specifics of the
service or request, the filter would have to do its own SOAP parsing.)

Finally, if this behavior is not currently available, would it be considered
compatible with the overall architecture?  If so, I would certainly be glad
to undertake the work of developing it in the appropriate way....but that's
a discussion for the developer list.

    Vance

Reply via email to