Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Incorporate CPAN module to mod-perl

by athanasia (Pilgrim)
on Jan 14, 2009 at 10:08 UTC ( [id://736176]=perlquestion: print w/replies, xml ) Need Help??

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

Dear monks,

Hopefully, this question is within the scope of this group and not irrelevant. I apologise in advance if the opposite is true.
I have the following problem. I am using Debian Linux and just downloaded some modules with apt-get install (i.e. libsoap-lite-perl and libapache2-mod-perl2-dev) in order to create a minimal server application in my pc that accepts SOAP messages from a cpe.

These modules have installed SOAP::Lite, SOAP::Transport::HTTP::Apache etc. my pc, which I have successfully used to receive and correctly decode the SOAP message from the client.

Now, I need the inverse procedure, i.e. I need the server to send a SOAP message (call an RPC method) to the cpe(client). From a quick scan in CPAN, I found SOAP::EnvelopeMaker which (I think) I need to accomplish this, and which unfortunately is not included in the mod-perl modules I have installed.

I tried entering the CPAN shell and installed SOAP::EnvelopeMaker from there. This caused my former code not to work (it suddenly started complaining for some packages it cannot find). By removing the CPAN module, my former code works again.

There seems to be a conflict in @INC, I mean between where CPAN modules are installed (/usr/local/share/perl/5.10.0) and where aptitude modules are installed (/usr/share/perl5/). How can I smoothly integrate them? Or, alternatively, is there a mod-perl module that includes SOAP::EnvelopeMaker?

Cheers,
Athanasia

Replies are listed 'Best First'.
Re: Incorporate CPAN module to mod-perl
by Hue-Bond (Priest) on Jan 14, 2009 at 10:13 UTC

    You could try to use something like dh-make-perl --build --cpan SOAP::EnvelopeMaker to create a Debian package for that module. Then install it manually using dpkg. That would integrate the module with the rest of your Debian system. dh-make-perl is available after installing the package of the same name ;).

    --
    David Serrano

      Thanks for the info. I tried the solution you suggested and created a .deb package from the cpan module.

      However, trying to install it led me to a "conflicting packages" issue. Seems that libsoap-perl (which contains SOAP::EnvelopeMaker) is in conflict with libsoap-lite-perl. Verified this also in https://launchpad.net/ubuntu/jaunty/i386/libsoap-lite-perl/0.710.08-2. Has anyone dealt with this conflict? Is there a way to keep both packages?

      Thanks in advance,
      Athanasia
Re: Incorporate CPAN module to mod-perl
by rahed (Scribe) on Jan 17, 2009 at 12:04 UTC
    I would avoid using SOAP::Lite and SOAP packages at the same time - both use SOAP::Transport::HTTP::Apache. Use only SOAP::Lite which can serve as a client and a server. Moreover the SOAP package is from the year 2000.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-04-18 09:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found