Builds a valid OData Entry JSON Post body from the entry argument.
Syntax
public
String
buildODataEntryRequestBody
(
IODataEntry
entry
,
String
collectionId
,
IODataSchema
schema
,
int
formatType
) throws ParserException
Parameters
-
entry –
The ODataEntry object to build the from
-
collectionID –
-
entry –
The ODataEntry object to build the from
-
collectionID –
Collection t which the entry would be posted
-
schema –
Schema of the service
-
formatType –
Format of the post body to be built 1 - Atom/XML 2 - JSON
Returns
The built documentThe built document
Exceptions
-
ParserException class –
If building has failed
-
IllegalArgumentException –
If the argument is null Builds a valid OData Entry XML or JSON Post body from the entry argument
-
ParserException class –
If building has failed
-
IllegalArgumentException –
If the argument is null