GenXMLString method: Incoming Business Interlink class
Syntax
GenXMLString()
Description
The GenXMLString method creates an XML string from a BiDocs object. The BiDocs object must contain the shape and data needed for an XML string. This is part of the Incoming Business Interlink functionality, which enables PeopleCode to receive an XML request and return an XML response.
Parameters
None.
Returns
String. The XML string containing the shape and data of the BiDocs object. For example, you can use this method to create an XML string containing an XML response.
Example
The following example takes a BiDocs structure that contains an XML response and puts that into a text string. After this is done, the %Response.Write function can send this as an XML response.
Local BIDocs &rootDoc;
Local string &xmlString;
/* Create a BiDoc structure containing the data and shape of your XML response ⇒
(code not shown) */
/* Generate the XML string containing the data and shape of your XML response from⇒
the BiDoc structure */
&xmlString = &rootDoc.GenXMLString();
%Response.Write(&xmlString);