The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

XprioriXMS - Perl extension for XprioriXMS Database.

XprioriXMS::Http - Perl extension for communicating with XprioriXMS Database.

SYNOPSIS

  use strict;
  use XprioriXMS::Http;
  my $oXpH = new XprioriXMS('http://localhost:7700/', 'Administrator', 'admin', );
  $oXpH->storeXML('<sample><base/></sample>');
  $oXpH->insertXML('/ND/sample/base', '<XYZ>xyz</XYZ>');
  my $sRes = $oXpH->queryXML('/ND/sample/XYZ');

DESCRIPTION

XprioriXMS is a module enables you to talk to XprioriXMS Database with http using LWP.

new($$$%)

$oXpH = Xprirori::Http->new($URL, $User, $Passwd [, %Option]);

Constructor. Creates a Xprirori::Http object and start session. If $URL is undef or empty string, XprioriXMS::Config::_connect will be used.

logout

$sXml = $oXpH->logout();

ends up session.

setTraceLevels

$sXml = $oXpH->setTraceLevels($sTraceLevel);

sets trace levels. (ex. 'INFO:LOG_Performance')

getTraceLevels

$sXml = $oXpH->getTraceLevels();

gets current trace levels. (ex. '<TraceLevel>FATAL:LOG_all;WARNING:LOG_all;ERR:LOG_all</TraceLevel>')

activateAccessControl

$sXml = $oXpH->activateAccessControl();

ativates access controls.

setPassword

$sXml = $oXpH->setPassword($User, $Passwd);

changes $User's password to $Passwd.

setIsolationLevel

$sXml = $oXpH->setIsolationLevel($sLvl);

sets isolation level. You can set $sLvl to READ_COMMITTED, READ_UNCOMMITTED and REPEATABLE_READ

startTransaction

$sXml = $oXpH->startTransaction(); $sXml = $oXpH->startTransaction($Flush); $sXml = $oXpH->startTransaction($Flush, $MaxDuration, InactivityDuraion);

starts trasaction. You can set $Flush FLUSH (immediately flush after commit) or NOFLUSH (flushed by background process).

$MaxDuration is maximum duraion of transaction. $InactivetyDuration is maximum duraion of transaction is inactive.

commitTransaction

$sXml = $oXpH->commitTransaction();

commits transaction.

rollbackTransaction

$sXml = $oXpH->rollbackTransaction();

rollbacks transaction.

queryXML

$sXml = $oXpH->query($Xquery);

gets the result of $Xquery.

queryFlatXML

$sXml = $oXpH->queryFlatXML($Xquery);

gets the result of $Xquery with flatten XML.

queryCountXML

$sXml = $oXpH->queryCountXML($Xquery);

counts nodes from the result of $Xquery.

queryTreeXML

$sXml = $oXpH->queryTreeXML($Xquery);

gets the names of children tags from the result of $Xquery.

queryXMLUpdateIntent

$sXml = $oXpH->queryXMLUpdateIntent($Xquery);

queries and gets result of $Xquery considering transaction and locks.

queryDataContextXML

$sXml = $oXpH->queryDataContextXML($Xquery);

Sorry I can't find out the use of this method.

deleteXML

$sXml = $oXpH->deleteXML($Xquery);

deletes nodes where matches $Xquery.

insertXML_File

$sXml = $oXpH->insertXML_File($Xquery, $XmlFile);

inserts contents of $XmlFile at the point of $Xquery.

insertXML

$sXml = $oXpH->insertXML($Xquery, $Xml);

inserts $Xml at the point of $Xquery.

modifyXML_File

$sXml = $oXpH->modifyXML_File($Xquery, $XmlFile);

modifies $Xquery with the contents of $XmlFile.

modifyXML

$sXml = $oXpH->insertXML($Xquery, $Xml);

modifies $Xquery with $Xml.

copyXML

$sXml = $oXpH->copyXML($Xquery);

copies a document specified with $Xquery.

storeXML_File

$sXml = $oXpH->storeXML_File($XmlFile [, $schemaURI, $prefix]);

stores contents of $XmlFile.

storeXML

$sXml = $oXpH->storeXML($Xml [, $schemaURI, $prefix]);

stores $Xml.

getServerStatistics

$sXml = $oXpH->getServerStatistics($Param);

$Param can be set : ''(=ALL, default), ADMIN, STORAGE, ACCESS, BUFFER, TRANSACTION, WINDOW.

clearServerStatistics

$sXml = $oXpH->clearServerStatistics();

clears statistics.

getServerVersion

$sXml = $oXpH->getServerVersion();

gets server version info.

setCharset

$sXml = $oXpH->setCharset($Charset);

sets characterset.

setLanguage

$sXml = $oXpH->setLanguage($Language);

sets language.

getCharset

$sXml = $oXpH->getCharset();

gets current characterset.

getLanguage

$sXml = $oXpH->getLanguage();

gets current language.

SEE ALSO

XprioriXMS::ServerUtil, XprioriXMS::Config

AUTHOR

KAWAI,Takanori kwitknr@cpan.org

COPYRIGHT

The XprioriXMS::Http module is Copyright (c) 2007 KAWAI Takanori, Japan. All rights reserved.

You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.