CAM-SOAPClient
view release on metacpan or search on metacpan
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<base href="http://www.clotho.com/code/CAM-SOAPClient/index.html">
<title>CAM-SOAPClient</title>
<link href="/css/demo.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="/js/demo.js" type="text/javascript"></script>
<style>
p.desc, td.links, a {
line-height: 17pt;
}
thead tr td {
align: left;
font-weight: bold;
font-style: italic;
}
a {
font-weight: bold;
text-decoration: none;
aborder-bottom: 1px dotted white;
}
a:hover {
font-weight: bold;
text-decoration: underline;
atext-decoration: none;
aborder-bottom: 1px solid white;
}
</style>
</head>
<body>
<div class="title">
<img src="/images/clotho.gif" alt="Clotho Advanced Media, Inc." width="339" height="117" border="0">
</div>
<div class="body">
<p class="title">CAM-SOAPClient</p>
<p class="subtitle">Last update: <a href="perl/CAM-SOAPClient-1.17-docs">v1.17</a>, 2006-04-07</p>
<p>
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.
</p>
<p>
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).
</p>
<p>
Example API (see t/server.t):
</p>
<p>
The getEmployeeData() service expects a request like:
<ssn>111-11-1111</ssn>
and provides a response like:
<name>John Smith</name>
<birthdate>1969-01-01</birthdate>
<phone>212-555-1212</phone>
</p>
<p>
CAM:<!-- -->:SOAPClient style:
</p>
<p>
sub getPhoneNumber_CAM_SOAP {
my ($ssn, $uri, $proxy) = @_;
return CAM:<!-- -->:SOAPClient
-> new($uri, $proxy)
-> call('getEmployeeData', 'phone', ssn => $ssn);
}
</p>
( run in 1.069 second using v1.01-cache-2.11-cpan-39bf76dae61 )