GetBiDoc function
Syntax
GetBiDoc(XMLstring)
Description
Use the GetBiDoc function to create a BiDocs structure. You can populate the structure with data from XMLstring. This is part of the incoming Business Interlink functionality, which enables PeopleCode to receive an XML request and return an XML response.
Note:
Business Interlinks is a desupported product. Use PeopleSoft Integration Broker instead.
See PeopleTools: Integration Broker.
Parameters
| Parameter | Description |
|---|---|
|
XMLstring |
A string containing XML. You can specify a NULL string for this parameter, that is, two quotation marks ("") without a space between them. |
Example
The following example gets an XML request, puts it into a text string, and puts that into a BiDoc. After this is done, the GetDoc method and the GetValue method can get the value of the skills XML element, which is contained within the postreq XML element in the XML request.
Local BIDocs &rootInDoc, &postreqDoc;
Local string &blob;
Local number &ret;
&blob = %Request.GetContentBody();
/* process the incoming xml(request)- Create a BiDoc and fill with the request*/
&rootInDoc = GetBiDoc(&blob);
&postreqDoc = &rootInDoc.GetDoc("postreq");
&ret = &postreqDoc.GetValue("skills", &skills);
You can also create an empty BiDoc with GetBiDoc, as in the following example.
Local BIDocs &rootInDoc, &postreqDoc;
Local string &blob;
Local number &ret;
&blob = %Request.GetContentBody();
/* process the incoming xml(request)- Create a BiDoc and fill with the request*/
&rootInDoc = GetBiDoc("");
&ret = &rootInDoc.ParseXMLString(&blob);
&postreqDoc = &rootInDoc.GetDoc("postreq");
&ret = &postreqDoc.GetValue("skills", &skills);
Return Value
A BiDocs object.