abstract class EnsLib.XML.Object.Service.Standard
extends Ens.BusinessService
EnsLib.XML.Object.Service.Standard is the base service class for services which read an XML document and
then use %XML.Reader to convert the document to a set of persistent classes.
This is a Business Service class.
parameter SETTINGS = "TargetConfigNames:Basic:selector?multiSelect=1&context={Ens.ContextSearch/ProductionItems?targets=1&productionName=@productionId},ClassName:Basic:selector?context={%ZEN.Portal.ContextSearch/Classes?super=%XML.Adaptor&classtype=persistent&system=0&internal=0},ElementName:Basic,Format:Basic,IgnoreNull:Basic";
List of properties can be set as settings in the configuration file
format is a comma separated list of property names
property ClassName
as %String;
The name of the class to correlate to the entire XML document or element in the XML document.
property ElementName
as %String;
The name of the element to correlate in the XML document.
The element must correspond to the specified ClassName.
If there are multiple occurences of this element, then a separate message will be sent to the target for each matching element.
If no element name is specified, then the root element will be correlated to the class.
property Format
as %String(VALUELIST=",literal,encoded,encoded12") [ InitialExpression = "literal" ];
The format of the XML document: "literal", "encoded" or "encoded12".
This parameter may be overriden by the Open... format parameter.
property IgnoreNull
as %Boolean [ InitialExpression = 0 ];
The runtime specification of the XMLIGNORENULL parameter to %XML.Adaptor.
IgnoreNull specifies the value of
XMLIGNORENULL at runtime as either 0 or 1.
property TargetConfigNames
as %String(MAXLEN=1000);
Configuration items to which to send Documents
classmethod OnGetConnections(Output pArray As %String, pItem As Ens.Config.Item)
Return an array of connections for drawing lines on the config diagram
method OnInit()
as %Status
This user callback method is called via initConfig() from %OnNew() or in the case of SOAP Services from OnPreSOAP()
method SetProperties(pReader As %XML.Reader)
Set the needed %XML.Reader properties.
This method may be overridden to add or change which proeprties are to be set.