Soap.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 2 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 25 CC 2 SCAR 15.4
CC
2
Cov
0%
AUTOLOAD
6.0
BEGIN
2.0
CRAP 4.7
1 package Xpriori::XMS::Soap;
2 use Xpriori::XMS::Svc;
3 sub AUTOLOAD($$@)
4 {
5 my($oSelf, $sConn, @aPrm) = @_;
6 my $sPref = ref($oSelf);
7 $sPref ||= $oSelf;
8 $sPref .= '::';
9  
10 my $sMethod = $AUTOLOAD;
11 $sMethod = substr($sMethod, length($sPref));
12 if (grep {$_ eq $sMethod}
13 qw(
14 login logout
15 setTraceLevels getTraceLevels setIsolationLevel
16 startTransaction commitTransaction rollbackTransaction
17 queryXML deleteXML insertXML modifyXML copyXML
18 queryFlatXML queryXMLUpdateIntent queryCountXML queryTreeXML
19 queryDataContextXML getServerStatistics clearServerStatistics
20 getServerVersion storeXML
21 ))
22 {
23 my $sRes = Xpriori::XMS::Svc->$sMethod($sConn, @aPrm);
24 return SOAP::Data->name($sMethod . 'Result' => $sRes);
25 }
26 else
27 {
28 return "ERROR: No Method : >$sMethod< >>$sPref<<";
29 }
30 }
31 1;
32 __END__