SOAPPart.getAsBytes was setting the current message to FORM_STRING instead of FORM_BYTES for the cases where the message is a FORM_SOAPENVELOPE or FORM_FAULT.
SOAPPart.getAsBytes was setting the current message to FORM_STRING instead
of FORM_BYTES for the cases where the message is a FORM_SOAPENVELOPE or
FORM_FAULT.

This caused some performance hits when the message was retrieved later and
had to convert the string to a byte[] a second time.  Also notice that the
comments in getContentLength imply that the byte form should be cached by
getAsBytes.


PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: 8699849808240b02471d01f5aaa03ec0c1cb68ee@247896 13f79535-47bb-0310-9956-ffa450edef68

apache/axis1-java,apache/axis1-java,apache/axis1-java,apache/axis1-java