Defines the interface to the Tamino ActiveX control. Please see also the section Command and Response Structure in the chapter X-Machine Programming which is part of the documentation for the Tamino XML server.
Properties | |
BSTR |
csDatabaseURL The database URL. The URL must be a full URL, for example: http://localhost/tamino/db/collection. This property must not be changed if a transactional session is in progress. |
BSTR |
csUserName The username for authentication. |
BSTR |
csPassword The password for authentication. |
BSTR |
SessionID The current session ID if a transactional session is in progress. |
BSTR |
SessionKey The current session key if a transactional session is in progress. |
long |
lPagesize The page size used for queries. Default value: 5. |
BSTR |
AcceptLanguage Used for the HTTP header 'Accept-Language'. Default value: 'en'. |
BSTR |
AcceptCharset Used for the HTTP header 'Accept-Charset'. Deprecated: Operation is ignored. |
BSTR |
ContentType Used for the HTTP header 'Content-Type'. Default value: 'application/x-www-form-urlencoded'. Deprecated: Operation is ignored. |
BSTR |
csXMLHeader Used for the XML header. Default: "<?xml version='1.0'?>" Deprecated: Operation is ignored. |
BSTR |
Encoding The document encoding. Deprecated: Operation is ignored. |
BSTR |
csSecurePath Deprecated: No longer used. |
Note:
In C++ the properties are accessed using Get/Put method pairs, for example
GetProperty/SetProperty.
Methods |
long UseServerHTTP(long index)
Initialize
method. The
default UseServerHTTP index value is 0.long Initialize()
UseServerHttp
.long GetErrorStatus(VARIANT* ErrorText)
ErrorText
contains the error
text. If the command succeeded, the parameter ErrorText
contains the Message-Text/Line from Tamino.VARIANT
by referencelong GetWarnings(VARIANT* warnings)
warnings
contains
the Message-Text/Line as from Tamino. VARIANT
by referenceBSTR GetAllResponseHeaders()
LPDISPATCH PutDocument(BSTR lpszRelURL, LPDISPATCH lpDOMNode)
lpszRelURL
- NULL, or the relative URL added to the
database URL if it does not begin with "http://"lpDOMNode
- IXMLDOMNode
IXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
LPDISPATCH GetDocument(BSTR lpszRelURL)
lpszRelURL
parameter.lpszRelURL
- NULL, or the relative URL added to the
database URL if it does not begin with "http://"IXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
LPDISPATCH DeleteDocument(BSTR lpszRelURL)
lpszRelURL
parameter.lpszRelURL
- NULL, or the relative URL added to the
database URL if it does not begin with "http://"IXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
LPDISPATCH PutXML(BSTR lpszReURL, VARIANT xmlBytes)
lpszRelUrl
- NULL
, or the relative URL
added to the database URL if it does not begin with "http://"xmlBytes
- XML document as byte array (SAFEARRAY of
VT_UI1)NULL
or IXMLDOMDocument
for the
response documentLPDISPATCH Process(LPDISPATCH lpDOMNode, BSTR lpszProcURL)
lpDOMNode
in the
database.IXMLDOMNode
- IXMLDOMNode
lpszProcURL
- NULL or the relative URL added to the
database URLIXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
LPDISPATCH InoDelete(LPDISPATCH lpDOMElement)
IXMLDOMElement
IXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
LPDISPATCH Insert(LPDISPATCH lpDOMNode)
lpDOMNode
into the Tamino
database.IXMLDOMNode
IXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
LPDISPATCH DoQuery(BSTR lpszXQLQuery)
lpszXQLQuery
statement.lpszXQLQuery
- query expressionIXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
RefreshResult()
LPDISPATCH DoQueryWithOffset(BSTR lpszXQLQuery, long loffset)
lpszXQLQuery
statement.lpszXQLQuery
- query expressionloffset
- offset at which the query startsIXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
RefreshResult()
, DoQuery()
LPDISPATCH RefreshResult()
IXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
DoQuery()
LPDISPATCH GetResult(LPDISPATCH lpDOMDocument)
xql:result
element in
lpDOMDocument
.IXMLDOMDocument
IXMLDOMElement
LPDISPATCH ReturnNodes(LPDISPATCH lpDOMDocument)
xql:result
and returns child
nodes. It implicitly calls GetResult
.IXMLDOMDocument
IXMLDOMNodeList
long IsPrevious(LPDISPATCH lpDOMDocument)
GetPrev()
method call is possible.IXMLDOMDocument
GetPrev()
LPDISPATCH GetPrev(LPDISPATCH lpDOMDocument)
IXMLDOMDocument
IXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
IsPrevious()
long IsNext(LPDISPATCH lpDOMDocument)
GetNext()
method call is possible.IXMLDOMDocument
GetNext()
LPDISPATCH GetNext(LPDISPATCH lpDOMDocument)
IXMLDOMDocument
IXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
IsPrevious()
long IsFirst(LPDISPATCH lpDOMDocument)
GetFirst()
method call is possible.IXMLDOMDocument
GetFirst()
LPDISPATCH GetFirst(LPDISPATCH lpDOMDocument)
IXMLDOMDocument
IXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
IsFirst()
long IsLast(LPDISPATCH lpDOMDocument)
GetLast()
method call is possible.IXMLDOMDocument
GetLast()
LPDISPATCH GetLast(LPDISPATCH lpDOMDocument)
IXMLDOMDocument
IXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
IsLast()
long GetTotalCount(LPDISPATCH lpDOMDocument)
IXMLDOMDocument
long
DoQuery()
LPDISPATCH DeleteByQuery(BSTR lpszQuery, BSTR lpszCollection, BSTR lpszDocType)
lpszQuery
- query expression to select records to
deletelpszQueryCollection
- collection namelpszQueryDocType
- doctype nameIXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
LPDISPATCH XQuery(BSTR lpszXQuery)
lpszQuery
- a correctly formatted XQuery stringIXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
LPDISPATCH XQuery(BSTR lpszQuery, long offset)
lpszQuery
- a correctly formatted XQuery stringoffset
- position to start reading fromIXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
LPDISPATCH XQueryResult(LPDISPATCH lpDOMDocument)
lpDOMDocument
- XQuery response documentIXMLDOMElement: result element or NULL if not
found
long XQueryBytes(BSTR lpszXQuery, VARIANT* bytes)
lpszQuery
- a correctly formatted XQuery stringbytes
- to hold result of query as a byte array
length of byte array returned
LPDISPATCH Update(BSTR lpszUpdate)
lpszUpdate
- a correctly formatted XQuery update
stringGetErrorStatus
]long UseRealCursoring(RealCursorTypes index)
index
- RealCursorTypes value.NoRealCursor = 0
,RealCursorNonScrollable = 1
,RealCursorScrollable = 2
UseRealCursoring
index.LPDISPATCH CloseCursor(LPDISPATCH lpDOMDocument)
lpDOMDocument
- DOM document with cursorNULL
or IXMLDOMDocument
for the
response documentLPDISPATCH StartSession(IsolationTypes InoIsolation, LockWaitTypes InoLockWait)
BeginSession
should be used in preference to this
method.IsolationTypes
- This is one of the following:InoIsolationDefault = 1
(take the
default defined in Tamino),InoUnprotected = 2
,InoShared = 3
,InoProtected = 4
LockWaitTypes
- This is one of the following:InoLockWaitDefault = 1
(take the
default defined in Tamino),InoLockWaitYes = 2
,InoLockWaitNo = 3
IXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
LPDISPATCH Commit()
IXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
LPDISPATCH Rollback()
IXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
LPDISPATCH EndSession()
IXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
long InSession()
TRUE
or FALSE
long UseGlobalTransactions(long flag)
flag
- TRUE or FALSELPDISPATCH SetGlobalTransactionId(VARIANT id, GlobalTransactionTypes type)
id
- BSTR for TipTransaction, BYTE[64] for
UtxIdTransaction, BSTR for UtxUrlTransactiontype - This is one of the following:
TipTransaction = 1
,UtxIdTransaction = 2
UtxUrlTransaction = 3
LPDISPATCH BeginSession(IsolationTypes isolation, LockWaitTypes wait, LockModeTypes mode)
isolation
- see SetIsolationLevel
for
possible valueswait
- see SetLockWait
for possible
valuesmode
- see SetLockMode
for possible
valuesIXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
LPDISPATCH BeginSessionWithGlobalTransaction(IsolationTypes isolation, LockWaitTypes wait, LockModeTypes mode, VARIANT id, GlobalTransactionTypes type)
isolation
- see SetIsolationLevel
for
possible valueswait
- see SetLockWait
for possible
valuesmode
- see SetLockMode
for possible
valuesid
- see SetGlobalTransactionId
for
possible valuestype
- see SetGlobalTransactionId
for
possible valuesIXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
long SetIsolationLevel(long isolation)
isolation
- This is one of the following:InoIsolationDefault = 1
(take the
default defined in Tamino),InoUnprotected = 2
,InoShared = 3
,InoProtected = 4
,IsolationUncommittedDocument = 5
,IsolationCommittedCommand = 6
,IsolationStableCursor = 7
,IsolationStableDocument = 8
,IsolationSerializable = 9
long SetLockWait(long wait)
wait
- This is one of the following:InoLockWaitDefault = 1
(take the
default defined in Tamino),InoLockWaitYes = 2
,InoLockWaitNo = 3
long SetLockMode(long mode)
mode
- This is one of the following:LockModeDefault = 1
(take the default
defined in Tamino),LockModeUnprotected = 2
,LockModeShared = 3
,LockModeProtected = 4
long SetTransactionTimeout(long secs)
secs
- This is one of the following:long SetNonActivityTimeout(long secs)
secs
- This is one of the following:
Note:
The use of the NodeLevelUpdate ISAPI has been set to deprecated.
LPDISPATCH InoAppendChild(BSTR lpszRelURL, BSTR lpszXPath, BSTR lpDOMNode)
lpszRelURL
.lpszRelURL
- relative URL to the documentlpszXPath
- path expression leading to the nodelpDOMNode
- new node to appendIXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
Note:
The use of the NodeLevelUpdate ISAPI has been set to deprecated.
LPDISPATCH InoInsertBefore(BSTR lpszRelURL, BSTR lpszXPath, BSTR lpDOMNode)
lpszRelURL
.lpszRelURL
- relative URL to the documentlpszXPath
- path expression leading to the nodelpDOMNode
- new node to appendIXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
Note:
The use of the NodeLevelUpdate ISAPI has been set to deprecated.
LPDISPATCH InoReplaceChild(BSTR lpszRelURL, BSTR lpszXPath, BSTR lpDOMNode)
lpszRelURL
and
lpszRelURL
by a new one.lpszRelURL
- relative URL to the documentlpszXPath
- path expression leading to the nodelpDOMNode
- new node to appendIXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
Note:
The use of the NodeLevelUpdate ISAPI has been set to deprecated.
LPDISPATCH InoRemoveChild(BSTR lpszRelURL, BSTR lpszXPath)
IXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
LPDISPATCH Undefine(BSTR theSchema)
BSTR
IXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
LPDISPATCH Define(LPDISPATCH lpDOMDocument)
IXMLDOMDocument
IXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
LPDISPATCH Diagnose(BSTR what)
IXMLDOMElement
LPDISPATCH Echo()
IXMLDOMElement
LPDISPATCH Ping()
IXMLDOMElement
BSTR GetVersion()
BSTR
LPDISPATCH Head(BSTR lpszRelURL)
lpszRelURL
parameter.lpszRelURL
- NULL, or the relative URL added to the
database URL if it does not begin with "http://"IXMLDOMDocument: DOM tree corresponding to response [if
NULL use GetErrorStatus]
BSTR GetMimeType()
BSTR
BSTR GetDateLastModified(BSTR lpszRelURL)
lpszRelURL
parameter.lpszRelURL
BSTR
BSTR GetLocation(LPDISPATCH lpDOMDocument)
IXMLDOMDocument
BSTR
VARIANT GetCollection(LPDISPATCH lpDOMX)
lpDOMX
parameter.lpDOMX
- IXMLDOMElement
or
IXMLDOMDocument
VARIANT GetDocType(LPDISPATCH lpDOMX)
lpDOMX
parameter.lpDOMX
- IXMLDOMElement
or
IXMLDOMDocument
VARIANT GetInoId(LPDISPATCH lpDOMX)
lpDOMX
parameter.lpDOMX
- IXMLDOMElement
or
IXMLDOMDocument