Hello again, Monks of Perl.
I have an obscure question about SOAP::Lite and how it dispatches.
I have a package that reports information about a machine that it lives on. It has no new() method and cannot be used as an object (by design). I also have a separate SOAP service script that needs to invoke the functions in that package and send the data back to the client caller. The overall idea is that you can use the package locally as a normal package or remotely via a SOAP::Lite client.
Now for the problem. SOAP::Transport appears to only dispatch to the package as an object. As a result, $self needs to be shifted out of all of my functions. And since the package doesn't have a new() method, using it locally requires something like "Full::Package::Name->function()", which is undesirable.
So, finally, my question is: Is there a way to prevent SOAP::Transport from dispatching to a package/module as an object? I got a tip somewhere that I might need to write a custom dispatcher, but I'm not sure how to do that or where to look-up on how to do that. If anyone could give me some insight on this or point me in the right direction, it would much appriciated.
Let me know if any of that was unclear. Thanks in advance!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.