SOAP::Lite is definitely the way to go, maybe create a wrapper module, MyMod, around your Win32::OLE stuff or maybe use Win32::OLE directly then write a simple service script such as: -
use SOAP::Transport::HTTP; my $server = SOAP::Transport::HTTP::Daemon ->new(LocalAddr => '192.168.0.1', LocalPort => 666) ->objects_by_reference('MyMod') ->dispatch_with( {'http://192.168.0.1/MyMod' => 'MyMod'}, ); $server->handle;
the "objects_by_reference" part is very important since Win32::OLE objects are quite complicated, you must also use SOAPs HTTP Transport otherwise "objects_by_reference" won't work. then write your client script like: -
use SOAP::Lite # trace => [ all, -transport ], dispatch_from => 'MyMod', uri => 'http://192.168.0.1/MyMod', proxy => ['http://192.168.0.1:666', timeout => 6000] ;
this would be equivalent to "use MyMod" in your client.

In reply to Re: Win32::OLE, TPJ#10, linux by bsdz
in thread Win32::OLE, TPJ#10, linux by Anonymous Monk

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.