Greetings all,

I have an existing Perl module that is written in object oriented Perl, and I'd like to make it available as a web service (or some other mechanism that allows for remote use).

My goal is to allow remote users to call the methods that are available in the module in more or less the same way they would use them if they had the module locally installed.

The module is already written and working pretty much as we'd like it to work, so I'm hoping to avoid major amounts of new coding, and I'd also like the "remote" users to be able to use the code in pretty much the same way as local users.

Any suggestions on how to proceed?

Thanks!
Ted

BTW, the following is an example of the code we can run locally now....we'd just like to somehow make it possible for a user to run this same kind of code on their own computer, and have our server do the work and send back the results.

use WordNet::QueryData; my $wn = WordNet::QueryData->new; defined $wn or die "Construction of WordNet::QueryData failed"; use WordNet::Similarity::DepthFinder; my $obj = WordNet::Similarity::DepthFinder->new ($wn); my ($err, $errString) = $obj->getError (); $err and die $errString; my $wps1 = 'car#n#4'; my $wps2 = 'oil#n#1'; my $offset1 = $wn -> offset ($wps1); my $offset2= $wn -> offset ($wps2); my @roots = $obj->getTaxonomies ($offset1, 'n'); my $taxonomy_depth = $obj->getTaxonomyDepth ($roots[0], 'n'); print "The maximum depth of the taxonomy where $wps1 is found is $tax +onomy_depth\n";

In reply to Convert Perl module to Web Service? by tpederse

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.