Default language.

ARSetDSOMappingToXML


Description

Saves information about a DSO mapping in an XML document. For more information about DSO mapping, see Creating-distributed-mappings.

Privileges

All users.

Synopsis


#include "arextern.h"

int ARSetDSOMappingToXML(
  ARControlStruct *control,
  ARXMLOutputDoc *xmlOutputDoc,
  ARBoolean xmlDocHdrFtrFlag,
  ARNameType mappingName,
  ARNameType fromSchema,
  ARServerNameType fromServer,
  ARNameType toSchema,
  ARServerNameType toServer,
  unsigned int *enabled,
  unsigned int updateCode,
  unsigned int *transferMode,
  unsigned int *mapType,
  unsigned int *rtnMapType,
  unsigned int *defaultMap,
  unsigned int *duplicateAction,
  unsigned int *patternMatch,
  unsigned int *requiredFields,
  long *retryTime,
  char **mapping,
  char **rtnMapping,
  char **matchQual,
  char **excludeFlds
  char **rtnExcludeFlds
  ARAccessNameType owner,
  ARAccessNameType lastModifiedBy,
  ARTimestamp *modifiedDate,
  char *helpText,
  char *changeHistory,
  ARPropList *objPropList,
  unsigned int *arDocVersion,
  ARStatusList *status)

Input arguments

control

The control record for the operation. It contains information about the user requesting the operation, where that operation is to be performed, and which session is used to perform it. The user, sessionId, and server fields are required.

xmlOutputDoc

The XML document output source.

xmlDocHdrFtrFlag

The header and footer flag for the XML document output source. If there is only one object in the XML document, set this value to (0).

mappingName

The name of the schema to be exported. Each schema name must be unique.

fromSchema

The name of the source schema. Each schema name must be unique.

fromServer

The name of the source server.

toSchema

The name of the target schema.

toServer

The name of the target server.

enabled

A flag that specifies whether the DSO pool is disabled (0) or enabled (1). Specify NULL for this parameter if you do not want to retrieve this value.

updateCode

A value that indicates when the server updates the entry after the entry is made.

transferMode

The transfer mode.

mapType

The type of mapping to use on transfer.

rtnMapType

The type of mapping to use on update or return.

defaultMap

A value that indicates the default mapping.

duplicateAction

The action to perform on transfer to the existing entry.

patternMatch

A value that indicates that pattern matching is enabled.

requiredField

A value that indicates if the required fields can be ignored.

retryTime

The maximum number of seconds that the server waits to remap the schema, before it cancels the operation.

mapping

A value that indicates custom mapping is turned on, if the mapType parameter is set to custom.

rtnMapping

A value that indicates custom mapping is turned on, if the rtnMapType parameter is set to custom.

matchQual

The matching qualification.

excludeFlds

A value that indicates the fields to be excluded from transfer mapping when the mapType value is Like IDs or Like Names. The list of field ids must be separated by a semi-colon (;).

rtnExcludeFlds

A value that indicates the fields to be excluded from update or return mapping when the rtnMapType value is Like IDs or Like Names. The list of field ids must be separated by a semi-colon (;).

owner

The owner for the DSO mapping.

lastModifiedBy

The user who last modified the DSO mapping.

modifiedDate

The date that the DSO mapping was last modified.

helpText

The help text associated with the DSO mapping. Specify NULL for this parameter if you do not want to retrieve the help text (which is useful if you are calling this function to verify whether an instance of this object exists).

changeHistory

The change history of the DSO mapping.

objPropList

The properties of the DSO mapping.

arDocVersion

The XML document version.

Return values

status

A list of zero or more notes, warnings, or errors generated from a call to this function. For a description of all possible values, see Error-checking.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*