DataPower service variable "var://service/mpgw/request-size"
sometimes has value 0 because the size cannot be determined,
- perhaps temporarily, due to message streaming
- or some other processing issue (like protocol not providing request size)
Slide 10 of this 2010 WSTE webcast provided a solution on how to determine the request size of a (Non-XML) request based on a FFD stylesheet.
FFD binary processing is only possible with DataGlue license which is not available on XA35, XS40 and XG45(without DIM option) appliances.
Posting Binary data processing without DataGlue license! provided a general solution on how to do binary data processing (in a stylesheet) without DataGlue license.
Posting Binary data processing without DataGlue license! provided a general solution on how to do binary data processing (in a stylesheet) without DataGlue license.
This posting is based on a XG45 customer question, and the solution is simply:
- take the first half of sample flow from above mentioned posting up to the Transform Action at bottom right
- select OUTPUT as output context of that transform action
- use stylesheet "req-size-hex.xsl" to determine the request size.
That's it, and here is a sample execution:
|