Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

I have a fairly convoluted problem which appears to result from an interaction with a PerlTransHandler and SOAP::Lite.

The scenario is that I have a set of web servers, running Apache 1.3.29/mod_perl 1.29, serving a number of virtual host configurations for various service interfaces. One of these virtual host configurations (virtual host A) employs SOAP::Lite (specifically Apache::SOAP) to provide a SOAP interface to some web services which are currently under development. By itself, this configuration is behaving correctly and without issue.

Upon establishing a configuration for a new virtual host (virtual host B) which employs a PerlTransHandler for service redirection however, errors are returned when attempting to access the SOAP::Lite services on the existing virtual host (virtual host A). The errors returned from the SOAP::Lite interface are of the form "Failed to locate method (MySoapMethod) in class (MySoapClass) at /opt/lib/perl5/site_perl/5.6.2/SOAP/Lite.pm line 2337". Removing the PerlTransHandler configuration from the new virtual host configuration (for virtual host B) rectifies this problem.

My question is how should I solve this conflict? Both of these virtual host services are required and cannot be omitted from the server configuration.

One thought which I had was to attempt to limit the scope of execution of the PerlTransHandler, but after doing a bit of research, I have found that the <Location> and <Directory> directives cannot be used to reduce the scope of PerlTransHandler execution (although I have not found any documentation as yet which correlates with my observation of PerlTransHandler execution across virtual hosts). Indeed, the recommended manner by by which to limit the application of PerlTransHandler is through the employ of location-specific attributes - For example:

PerlTransHandler MyTranshandler <Location ...> PerlSetVar SkipTransHandler 1 </Location> package MyTransHandler; sub handler { return DECLINED if $r->dir_config('SkipTransHandler'); ... }
This however, is something which I have already put in place into my PerlTransHandler package to no avail and as such am now searching for other suggestions as to how to address this issue.

 

perl -le "print unpack'N', pack'B32', '00000000000000000000001011100000'"


In reply to Problem with PerlTransHandler by rob_au

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-19 10:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found