ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> modperl
modperl
Fedora Core 6, SOAP::Lite and mod_perl -- does this work?
by Tom Cross other posts by this author
Dec 5 2006 12:35PM messages near this date
Re: [RELEASE CANDIDATE] Apache-SizeLimit 0.91 RC1 | Re: Fedora Core 6, SOAP::Lite and mod_perl -- does this work?
According to some bugs in bugzilla.redhat.com, it looks like there is an
issue with mod_perl on fc5,6, rhel3, and rhel4.  I'm wondering if this
is the case, or if I'm doing something wrong.  Is this a mod_perl issue?
I tried the fedora mod_perl (2.0.2) and I built a 2.0.3 mod_perl package
and neither one worked.

Fresh install of Fedora Core 6.
Install mod_perl, perl-SOAP-Lite Fedora packages.

Setup SOAP::Lite according to documentation by adding this to Apache's
conf:

<Location /soap> 
        SetHandler perl-script
        PerlHandler Apache::SOAP
        PerlSetVar dispatch_to "/home/soap, MIME::Lite"
        PerlSetVar options "compress_threshold =>  10000"
</Location> 

Attempt to connect to simple "Hello World" SOAP server in /home/soap/
and I receive this message in /var/log/httpd/error_log:


[Tue Dec 05 13:33:48 2006] [error] [client 204.107.148.116] Can't locate
object 
method "dir_config" via package "Apache2::RequestRec"
at /usr/lib/perl5/vendor_perl/5.8.8/SOAP/Transport/HTTP.pm line 653.\n


##############################################

Simple Server in /home/soap/Server.pm:

#!/usr/bin/perl -w

package Server;

sub testme ($$)
{
        my ($class, $teststring) = @_;

        return $teststring . " from the Server";
}

1;

###############################################

My test client:

#!/usr/bin/perl -w

use SOAP::Lite;

my $kendeco_soap = SOAP::Lite
        ->  uri('urn:Server')
        ->  proxy('http://kearney.kendeco.com/soap')
        ->  on_fault(sub { my($soap, $res) = @_;
                die ref $res ? $res-> faultstring :
$soap-> transport->status, "\n";
        });
$kendeco_soap-> transport->timeout(150);


$res = $kendeco_soap-> testme ("This is a test");
$r = $res-> result;

print "R: $r\n";

############################################################

Thanks for any/all feedback!!

-- 
Tom Cross           Voice: 320-253-6483 Ext 207      FAX: 320-253-6956
IS Manager                                    E-mail: tomc@[...].com
Kendeco Tool Crib                               http://www.kendeco.com
Thread:
Tom Cross
Tom Cross
Geoffrey Young
Tom Cross
Randy Kobes
Philip M. Gollucci
Tom Cross
Philip M. Gollucci

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved