RESTful web service uses document type messages in service operations. We need to create message structure in document and then need to create a new message using this structure. Understanding the People Tools Document object is necessary to building REST based web services in People Soft so let's cover some of the basics.
Documents represent a hierarchical data structure a lot like a Rowset object. They have a logical representation and a physical representation in the form of XML, HTML and JSON (from Tools 8.53).
Documents can be grouped together in a Package and like other Integration Broker object definitions can be versioned.
A document is a tree structure representing data. As such, every document has ROOT element that is the name of the Document.
There a four basic data types
*Primitive. An element that has one of the simple data types of integer, string, character, date, time, etc.
*Compound. An element that contains 1 or more primitives (think Record definition)
*Complex Primitive Compound. A primitive element that has attributes. (think XML attributes ElementValue )
*Collection. An element that is a repeating group of Compound and/or Primitives. (think Rowsets)
A Document is required to collect the inbound URI parameters from a REST web service call. This is done by mapping the URI parameters to document element names. This is called the Document Template.
Thanks,
Mano
Documents represent a hierarchical data structure a lot like a Rowset object. They have a logical representation and a physical representation in the form of XML, HTML and JSON (from Tools 8.53).
Documents can be grouped together in a Package and like other Integration Broker object definitions can be versioned.
A document is a tree structure representing data. As such, every document has ROOT element that is the name of the Document.
There a four basic data types
*Primitive. An element that has one of the simple data types of integer, string, character, date, time, etc.
*Compound. An element that contains 1 or more primitives (think Record definition)
*Complex Primitive Compound. A primitive element that has attributes. (think XML attributes ElementValue )
*Collection. An element that is a repeating group of Compound and/or Primitives. (think Rowsets)
A Document is required to collect the inbound URI parameters from a REST web service call. This is done by mapping the URI parameters to document element names. This is called the Document Template.
Thanks,
Mano