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

Dear Monks,

I have some legacy C++ code that used
ACE+TAO to do RPC. I need to turn this
code into a "Web Service" without doing
a major re-write.

( * waiting for laughter to stop *)

I was hoping that I could use Inline::CPP
with SOAP::Lite to turn the base classes of my
C++ code into "Web Service".

Here's my questions:
Has anyone used Inline::CPP?
If so can it handle complex classes and data types?
Does anyone think what I am attempting to do is
even remotly possible?

Thanks
  • Comment on legacy C++ code, SOAP::Lite and Inline::CPP

Replies are listed 'Best First'.
Re: legacy C++ code, SOAP::Lite and Inline::CPP
by PodMaster (Abbot) on Jul 23, 2002 at 09:16 UTC
    I haven't used Inline::CPP or Inline::C for that matter.

    Yes it can handle complex classes and data types.

    What you are attempting to do is remotely possible, but it depends on what it is.

    Asides from compiling this stuff and what not, you have to provide typemaps and wrapper functions to your legacy api, so you can access it from perl. This requires wrapping/translating perl data structures, into whatever your API takes.

    I haven't done any of this, but you can find examples on the site.

    Don't I sound convincing? ;)

    Here's an example: Image::Filter::Blur draft

    ____________________________________________________
    ** The Third rule of perl club is a statement of fact: pod is sexy.