> Message: 4 > Date: Mon, 25 Mar 2013 01:04:28 +0000 > From: Sam Kington <s...@illuminated.co.uk> > Subject: Re: API wrapper best practices? > To: "London.pm Perl M\[ou\]ngers" <london.pm@london.pm.org> > Message-ID: <10d48713-d33c-40f3-84e9-b28c52d40...@illuminated.co.uk> > Content-Type: text/plain; charset=iso-8859-1 > > On 24 Mar 2013, at 13:13, Ashley Hindmarsh <ash+p...@best-scarper.co.uk> > wrote: > > I guess the holy grail is something that takes the API schema and builds > > the classes on-the-fly, and is closer to what Dave Hodg is after. > > People thought of that, and now we have SOAP. So be careful for what you > wish for. >
I was using SOAP::WSDL as it reached v2.0 (ca. 2007). It features a complete wrapping of XML Schema data types, from which a Perl wrapper (accessors etc) can be generated, although you have to live with that minimalism (e.g. all arrays + containers - no mappings). Just wonder if the XML Schema wrapping could be extracted for use with RESTful APIs which have well-defined schemas (I guess I may have just volunteered) Ash > > Sam > -- > Website: http://www.illuminated.co.uk/ > >