CAM-SOAPClient

Last update: v1.17, 2006-04-07

This module simplifies interaction with SOAP web services. Mostly it's an easy-to-use wrapper around SOAP::Lite, but it contains a killer feature to simplify the programmer's life: the call() method.

The call() method lets your client specify exactly which data it wants from the SOAP response, in the order it wishes to receive that data. We find this to be substantially simpler than SOAP::Lite's data returning helpers (like result() and paramsout()) which try to be smart, but end up making life harder for many applications (in particular, for applications that return tagged data in arbitrary order, instead of simple positional values).

Example API (see t/server.t):

The getEmployeeData() service expects a request like: 111-11-1111 and provides a response like: John Smith 1969-01-01 212-555-1212

CAM::SOAPClient style:

sub getPhoneNumber_CAM_SOAP { my ($ssn, $uri, $proxy) = @_; return CAM::SOAPClient -> new($uri, $proxy) -> call('getEmployeeData', 'phone', ssn => $ssn); }

Equivalent SOAP::Lite style:

sub getPhoneNumber_SOAPLite { my ($ssn, $uri, $proxy) = @_; my $som = SOAP::Lite -> uri($uri) -> proxy($proxy) -> call('getEmployeeData', SOAP::Data->name(ssn => $ssn)); if (ref $som) { return $som->valueof('/Envelope/Body/[1]/phone'); } else { return; } }

The simplistic server implementation is in t/lib/Example.pm

License | Files | Date
Perl | CAM-SOAPClient-1.17.tgz (MD5) CAM-SOAPClient-1.17.zip (MD5) CAM-SOAPClient-1.17-docs | Fri Apr 7 09:45:23 2006
Perl | CAM-SOAPClient-1.16.tgz (MD5) CAM-SOAPClient-1.16.zip (MD5) CAM-SOAPClient-1.16-docs CAM-SOAPClient-1.16-docs.tgz (MD5) | Tue Feb 21 19:56:26 2006
Perl | CAM-SOAPClient-1.15.tgz (MD5) CAM-SOAPClient-1.15.zip (MD5) CAM-SOAPClient-1.15-docs CAM-SOAPClient-1.15-docs.tgz (MD5) | Fri Feb 17 16:45:47 2006
Perl | CAM-SOAPClient-1.14.tgz (MD5) CAM-SOAPClient-1.14.zip (MD5) CAM-SOAPClient-1.14-docs CAM-SOAPClient-1.14-docs.tgz (MD5) | Tue Dec 20 10:17:24 2005
Perl | CAM-SOAPClient-1.13.tgz (MD5) CAM-SOAPClient-1.13.zip (MD5) CAM-SOAPClient-1.13-docs | Fri Apr 22 23:21:33 2005
GPL | CAM-SOAPClient-1.12.tgz (MD5) CAM-SOAPClient-1.12.zip (MD5) CAM-SOAPClient-1.12-docs | Thu Sep 16 10:43:07 2004
Clotho | CAM-SOAPClient-1.12.tgz (MD5) CAM-SOAPClient-1.12.zip (MD5) CAM-SOAPClient-1.12-docs | Thu Sep 16 10:43:07 2004
GPL | CAM-SOAPClient-1.11.tgz (MD5) CAM-SOAPClient-1.11.zip (MD5) CAM-SOAPClient-1.11.html | Tue Sep 16 11:50:05 2003
Clotho | CAM-SOAPClient-1.11.tgz (MD5) CAM-SOAPClient-1.11.zip (MD5) CAM-SOAPClient-1.11.html | Tue Sep 16 11:50:05 2003

Perl License

This software is released by Clotho Advanced Media, Inc. under the same terms as Perl itself. That means that it is dual-licensed under the Artistic license and the GPL, and that you can redistribute it and/or modify it under the terms of either or both of those licenses. Copies of this license are available from Clotho or view the LICENSE file directly.

GPL License

Releases of this software are available under the General Public License, v2. Copies of this license are available from Clotho and GNU.

Clotho License

Releases of this software are available under commercial license directly from Clotho. Please contact us at info@clotho.com to purchase a license.