appserver: adding length info to xml header so that a complete xml message is read