I have a requirement where I need to restrict the size of payload my OSB Proxy should accept. Example anything > 1 MB should not be accepted.
I know there we can set the HTTP " Max Post Size" in weblogic but that would be at Domain level . I would like to set this at individual Proxy level.
Appreciate any help or pointers.
Suspect your only option, once the max message size is set at the WLS managed server level so you're protected from DOS attacks, is to get hold of the HTTP Content-Length header as the first action in your proxy service and choose to process the message or return immediately based on that.
You cant change it outside the Proxy code and only at Proxy level. Either change it globally or if you want to do it at Proxy Level then validate it within Proxy Code.
If you still want to do it outside the Proxy Code and only at proxy level then you can expand HTTP transport using OSB transport SDK to a custom transport which has a limitation on message size as desired, not a valid use case for designing a custom transport but it will fulfill the requirement if that's all what you care about.