| 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__ |