OK, I will try to descripe the requirement more clearly.
I need get to the data length of transaction for charging my customer.
First, for TN document we can get the length of bizdoc.
Second, we have several solution which did not go through TN, I expect one solution to get the length of this type of case.Maybe I need a java service which has an object data type as input, and the output should be the length of the object. Because I have no experience to develop this Java service, I need some help from the forum.