XML Connector API 6.0.2.61

com.baan.ow.xmlconnector.dispatcher
Interface IRequest


public interface IRequest

Represents a request to a BAC backend.

The request is carried to the backend in an XML document that obeys the following XML Schema:

The request looks like this:

 <RequestMsg>
	<DispatcherEnvelope>
		<Object> object_name </Object>	
		<Method> method_name </Method>
	</DispatcherEnvelope>
	<ObjectMethodRequest>
		…
	</ObjectMethodRequest>	
 </RequestMsg>
 

This class provides accessor methods for accessing this document using W3C's Document Object Model (DOM). It is possible to alter the document in ways that violate the specified schema. Attempting to subsequently send such an invalid request will result in a RequestException.

Version:
Build Nr 61, file version \\main\\Middleware-3_11\\1, 15:35:59 24-07-2006 UTC
Author:
Baan Company

Method Summary
 com.baan.ow.xmlconnector.dispatcher.IReply execute()
          defines execute for a particular backend.
 org.w3c.dom.Element getRequestMsg()
          Retrieves the 'root' DOM element of Request.
 

Method Detail

getRequestMsg

public org.w3c.dom.Element getRequestMsg()
Retrieves the 'root' DOM element of Request.

Altering this element alters this request.

Threading policy: Unsafe

Returns:
the DOM element for the Request (never null). The ownership of the "Request" lies with the caller of this method

execute

public com.baan.ow.xmlconnector.dispatcher.IReply execute()
                                                   throws FaultException,
                                                          RequestException
defines execute for a particular backend.

Postconditions:

Returns:
an IReply object which contains a response in case of successful execution of request on the server side
Throws:
FaultExecption - in case a Fault document is replied
RequestException - in case of an error in the BAC Dispatcher
FaultException

XML Connector API 6.0.2.61

Visit the SSA Global website for more information.