# WGETBODY
Updated: 2/24/2021, 3:51:59 PM
Created: 2/24/2021, 3:51:59 PM
Last Updated By: Daniel Klein
Read Time: 1 minute(s)
WGETBODY gets the raw body sent in the web request if the web request is not a x-www-form-urlencoded. This is primarily used to get XML or JSON sent in Rest services.
# Cpommand Syntax
CALL WGETBODY(BODY)
1
# Syntax Elements
The WGETBODY subroutine only returns a string. That string is the raw body.
# Example
CALL WGETBODY(BODY)
* NOW PARSE BODY JSON INTO A OBJECT
CALL WOBJ(BODYOBJ,"FROMSTRING","",BODY,"",RERR)
1
2
3
2
3