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

Hi Monks, I am actually trying to call a subroutine subroutine1 through Soap::Lite in a remote machine via http. The subroutine is defined inside a module Module1.pm, which has a newconstructor. I have an arrangement in another module as, "export @ISA, Module1 and require Module1".

What happens is , whenver i call the subroutine like soapobject->subroutine1 , soap lite returns an error like "undefined subroutine &Module1::Subroutine1.

When i remove the constructor from the Module1.pm , and try to call the subroutine, it gets called. My doubt is, if a construtor is defined inside a module, is it possible to call subroutines in that module, only via constuctor and if so, how the constructor is identified, as constructor can be given any name and not strictly new. Please clarify me.
  • Comment on Soap Lite - call a subroutine in remote machine

Replies are listed 'Best First'.
Re: Soap Lite - call a subroutine in remote machine
by Anonymous Monk on May 18, 2013 at 08:48 UTC