Hello I would like to use mod_perl and PerlTransHandler as a proxy mechanism to route SOAP messages depending on a value located at the very beginning of the XML content. No need to parse the XML content, a simple text search would work just fine.
Could some of you help me to define the mechanism to use? Is there somewhere out there an example of such a mechanism I could use? So, in other words, I would like to rewrite the URI if the content contains some predefined keywords. But I understand that the content is not easily accessible from within PerlTransHandler. I have seen the following code: use Apache::Constants qw(M_GET); my $r = shift; my $content = $r->content; $r->method("GET"); $r->method_number(M_GET); $r->headers_in->unset("Content-length"); $r->args($content); $r->internal_redirect_handler("/new/url"); Would it work in PerlTransHandler? I am not sure. And the content might be large (a few MB) and hundreds of simultaneous SOAP messages may be proxied. Is there any other way around? Thanks for any clue Bruno