How to limit the payload size in apigee?

Not applicable

I have services with soap body. I need to limit the payload size in proxy configuration.

How can I do that?

I don't want JSON parser use as its affecting my soap payload get corrupted.

1 5 1,067
5 REPLIES 5

I don't need the header to be passed. This is actually a restriction in api end for APIs. We don't want specific APIs to send payload bigger than the size. If the heade will send that then it will be the api requester's control.

And don't want to add the configuration in kvm for each proxy

Any property in proxy to configure?

The size of the payload is always included in the content-length header. (RFC 7230, section 3.3.2: Content-Length)

Raise a fault if request.header.content-length is greater than your threshold.

in which measurement need to give payload size value (example like bytes, kb etc )

Not applicable

I did set the content-length header in a javascript to 6MB in preflow request and that worked as I expected.