Loading ...
Sorry, an error occurred while loading the content.

5036Using regular perl module on SOAP server

Expand Messages
  • Young-Jun Oh
    Dec 2, 2005
    • 0 Attachment
      Hi All,

      I try to call perl module in @INC from mod_soap perl module (on
      Apache) but it looks like I'm not able to call outside perl modules
      (which is Net::DNS from my example) Am I missing something? Thanks in
      advance.

      This is what I've done;

      [ SOAP Client ]

      #!/usr/bin/perl -w


      use SOAP::Lite;


      $soap_response = SOAP::Lite
      -> uri('http://server/Demo')
      -> proxy('http://server/SOAP')
      -> hi();

      [ SOAP Server using Apache: Demo.pm]

      package Demo;


      use Net::DNS;

      sub hi {
      $ret=Net::DNS->version;
      return "hello, world: $ret";
      }

      1;

      [Apache httpd.conf]

      # for mod_soap
      <Location /SOAP>
      SetHandler perl-script
      PerlResponseHandler Apache2::SOAP
      PerlSetVar dispatch_to "/var/www/cgi-bin/RPC2/modules,
      Module::Demo"
      PerlSetVar options "compress_threshold => 10000"
      </Location>