JBossWS doesn't provide input stream hooks where you could check message size. Maybe tomcat can do it? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261596#4261596 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261596