The IXMLDispatcher interface

The IXMLDispatcher interface is the main entry point of the application server. Through this interface, external applications (like GUI's, web applications, B2B applications, ...) can execute all services exposed by the XMLClass specification.

The XML messages passed in as request and returned as return-value are instances of the XMLStruct datastructure specifications.

This is a language-independent description of the IXMLDispatcher interface.

dispatchClassMethodXML

This method is used to execute a class method which is defined on a class using the XMLClass DTD.

dispatchClassMethodXML(
      String className,
      String methodName,
      String xmlRqst,
      String sessionData)
   String

Parameters

String className

The name of the class.

String methodName

The name of the class method to execute.

String xmlRqst

The XML request message taken as input by the class method.

String sessionData

The session information.

Return values

The XML response message returned by the class method.

dispatchNewInstanceMethodXML

This method is used to execute a constructor method which is defined on a class using the XMLClass DTD. As a result this method instanciates an instance of the class (a business object) and returns the instanceId of the business object.

dispatchNewInstanceMethodXML(
      String className,
      String methodName,
      String xmlRqst,
      String sessionData)
   String

Parameters

String className

The name of the class.

String methodName

The name of the constructor to execute.

String xmlRqst

The XML request message taken as input by the constructor.

String sessionData

The session information.

Return values

The instanceid of the newly created business object.

dispatchInstanceMethodXML

This method is used to execute an instance method which is defined on a class using the XMLClass DTD.

dispatchInstanceMethodXML(
      String className,
      String methodName,
      String instanceId,
      String xmlRqst,
      String sessionData)
   String

Parameters

String className

The name of the class.

String methodName

The name of the instance method to execute.

String instanceId

The instanceId of the business object on which we want to execute the instance method.

String xmlRqst

The XML request message taken as input by the instance method.

String sessionData

The session information.

Return values

The XML response message returned by the instance method.