in reply to Convert Perl module to Web Service?

Hi, Having spent the last year building SOAP web services with perl tools, I'd like to point a few useful things.
You should be looking into Markov's excellent XML::Compile::WSDL11

I've mainly used Catalyst in conjunction with Catalyst::Controller::SOAP which simplify most things.

If you need to use your module as a catalyst model, use Catalyst::Model::Adaptor (or Catalyst::Model::Factory if you want a brand new object at each request )
If "wsdl" rings no bell, start here I had quite a hard time dealing with all the info to assimilate at first, pm me if you want more pointers
  • Comment on Re: Convert Perl module to Web Service?

Replies are listed 'Best First'.
Re^2: Convert Perl module to Web Service?
by tospo (Hermit) on Aug 23, 2010 at 10:28 UTC
    I'd second this. With Catalyst::Model::Adaptor or Catalyst::Model::Factory you can use Catalyst pretty much as glue between your existing model (the package you have written already) and the web framework, which provides the views and the controllers. The controllers should be tiny as they only call methods in your model based on input parameters. I use that approach too. Have a look at Catalyst::Action::REST as well.