GetContentBody method: Request class
Syntax
GetContentBody()
Description
Note:
PeopleSoft Business Interlinks is a desupported product. This method currently exists for backward compatibility only.
This method retrieves the text content of an XML request. 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
A string.
Example
The following example gets the XML text content of a request, then uses that as input to create a BiDoc. Then the BiDoc methods GetDoc and GetValue are used to access the value of the skills tag.
Local BIDocs &rootInDoc, &postreqDoc;
Local string &blob;
Local number &ret;
&blob = %Request.GetContentBody();
/* process the incoming xml(request)- Create a BiDoc */
&rootInDoc = GetBiDoc(&blob);
&postreqDoc = &rootInDoc.GetDoc("postreq");
&ret = &postreqDoc.GetValue("skills", &skills);