Support Topics Documentation Slack YouTube Blog

Getting raw request body string

(Dongwoon Son) #1

I want to get raw request body string in api services.
A service method with one argument cannot get json string like {“a”:“b”}.
Can you add ‘httpBody’ to ‘InvocationContextDTO’?

(Mark Piller) #2

Why don’t you declare a method which takes one argument of type Object? Then you can send any JSON as the method argument.


(Dongwoon Son) #3

Can’t I use other formats than JSON?

(Vladimir Upirov) #4

yes, you can use String

if you define only one parameter and it is String, you can send to the Service-Method a simple string</img></img>


(Dongwoon Son) #5

not work with this body:


I got just


as return.

(Vladimir Upirov) #6

try this


(Dongwoon Son) #7

If that is the only way, it would be difficult to maintain compatibility with my existing clients.
Thank you anyway.