CAM-SOAPClient
Last update: v1.13, 2005-04-22
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:
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 undef; } }
The simplistic server implementation is in t/server/Example.pm.
License | Files | Date |
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.