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

SOAP::Lite issues... stumped

by codejerk (Initiate)
on Sep 07, 2006 at 15:41 UTC ( [id://571718]=perlquestion: print w/replies, xml ) Need Help??

codejerk has asked for the wisdom of the Perl Monks concerning the following question:

Hello monks,

I've started exploring the SOAP modules and am having a very difficult time getting SOAP::Lite to work at all. It seems that documentation for SOAP::Lite is only current through 0.67, whereas 0.69 is the version on CPAN. I'm not sure if that is the root of the problem, but I doubt it. Here are the specifics:

my test script (pulled straight from soaplite.com):

use SOAP::Lite; print SOAP::Lite -> uri('http://www.soaplite.com/Temperatures') -> proxy('http://services.soaplite.com/temper.cgi') -> c2f(37.5) -> result;

the result of that script:

Can't locate object method "new" via package 
"SOAP::Packager::MIME" (perhaps you forgot to load 
"SOAP::Packager::MIME"?) at 
/usr/local/share/perl/5.8.7/SOAP/Lite.pm line 3241.

so... I go look at Lite.pm, around line 3241:

unless (ref $self) { my $class = ref($self) || $self; # Check whether we can clone. Only the SAME class allowed, no inhe +ritance $self = ref($soap) eq $class ? $soap->clone : { _transport => SOAP::Transport->new, _serializer => SOAP::Serializer->new, _deserializer => SOAP::Deserializer->new, _packager => SOAP::Packager::MIME->new, _schema => undef, _autoresult => 0, _on_action => sub { sprintf '"%s#%s"', shift || '', shift }, _on_fault => sub {ref $_[1] ? return $_[1] : Carp::croak $_[ +0]->transport->is_success ? $_[1] : $_[0]->transport->status}, };

as you can see, SOAP::Packager::MIME->new is called... but for the life of me, I can't find that routine anywhere. In fact, google only has 3 references to SOAP::Packager::MIME and none of them has any real information. I've updated (via the CPAN module) SOAP, SOAP::Packager, SOAP::Lite, and SOAP::MIME along with all prerequisites for these modules.

Does anyone else have experience with this problem? Have I missed something completely obvious? Please help me out here, brothers.

Replies are listed 'Best First'.
Re: SOAP::Lite issues... stumped
by jdtoronto (Prior) on Sep 07, 2006 at 16:03 UTC

      It's a bit odd though because SOAP::Lite's Lite.pm does an explcit (and unconditional) use SOAP::Packager; so if the module wasn't installed then it would throw an error earlier.

      /J\

        Like I said in my first post... SOAP::Packager is up to date. It does not include SOAP::Packager::MIME (at least not the version I pulled down from CPAN) =/
Re: SOAP::Lite issues... stumped
by randyk (Parson) on Sep 08, 2006 at 04:49 UTC

    At least in version 0.69, SOAP::Packager::MIME is contained within SOAP::Packager.

    The example script that failed for you worked for me with SOAP-Lite-0.69. I was able to reproduce your error though by installing the SOAP package on top on SOAP-Lite; SOAP also provides a SOAP::Packager module which is incompatible with that of SOAP::Lite. Try reinstalling SOAP-Lite to see if that fixes the problem.

      Grrrr! Yes this always struck me as something of a bug in SOAP::Lite that the 'helper' modules are in the top-level SOAP:: namespace, whereas, in my opinion, they should be in SOAP::Lite::. Of course it is possibly too late to change this. Conversely, because of the design of SOAP::Lite, I don't think it would be possible to use the existing SOAP components wherever there might be an overlap.

      However someone should probably file a bug on SOAP::Lite about this conflict before it is too late to change.

      /J\

        However someone should probably file a bug on SOAP::Lite about this conflict before it is too late to change.

        I was bitten by this the other day, and tried to advise all concerned. The only response I received was from Andreas Koenig (PAUSE maintainer), who agreed that the namespace was owned by first-comer SOAP, and that the SOAP::Lite community had responsibility for fixing it.

        I also found two reports of the same problem on http://rt.cpan.org (currently down?), in 2005 and (IIRC) 2003.

        Hugo

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://571718]
Approved by VSarkiss
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-23 09:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found