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

Hi,
We have developed an interface so that we can send data to different kind of suppliers via POST. The interface is quite configurable via a template, which means that we can name the parameters to whatever the supplier wants.

We'd like to expand the functionality so that we can send data to a webservice, based on some kind of template.

I think this can be hard to accomplish using SOAP::Lite or such, because of it's generic nature. However, earlier I've successfully managed to POST XML files to webservices maybe this is the way to go? An XML template that is used to POST data to a certain webservice? Or is there a better way?

Replies are listed 'Best First'.
Re: Generic webservice interface
by stonecolddevin (Parson) on Dec 18, 2009 at 19:59 UTC

    Catalyst::Controller::REST

    JSORB

    Catalyst::Plugin::Server::XMLRPC

    I'd highly recommend a Catalyst app of some sort (or Jifty, etc, choose your poison) and their plugins to handle serialization and deserialization of data/requests, so you could also allow for REST and other such useful protocols commonly used in web applications.

    mtfnpy

Re: Generic webservice interface
by Jenda (Abbot) on Dec 19, 2009 at 17:05 UTC

    Well, what's SOAP more than an overcomplicated XML sent by POST? OK, sometimes you can call some SOAP "methods" by GET, but anyway.

    Jenda
    Enoch was right!
    Enjoy the last years of Rome.

A reply falls below the community's threshold of quality. You may see it by logging in.