/** * This is the number of attachments. * * @return the number of attachments */ public int getAttachmentCount() { if (_askedForStreams) { throw new IllegalStateException(Messages.getMessage("concurrentModificationOfStream")); } try { mergeinAttachments(); // force a serialization of the message so that // any attachments will be added soapPart.saveChanges(); return orderedAttachments.size(); } catch (AxisFault e) { log.warn(Messages.getMessage("exception00"),e); } return 0; }
/** * This is the number of attachments. * * @return the number of attachments */ public int getAttachmentCount() { if (_askedForStreams) { throw new IllegalStateException(Messages.getMessage("concurrentModificationOfStream")); } try { mergeinAttachments(); // force a serialization of the message so that // any attachments will be added soapPart.saveChanges(); return orderedAttachments.size(); } catch (AxisFault e) { log.warn(Messages.getMessage("exception00"),e); } return 0; }
/** * Get the content length for this SOAPPart. * This will force buffering of the SOAPPart, but it will * also cache the byte[] form of the SOAPPart. * * @return the content length in bytes */ public long getContentLength() throws AxisFault { saveChanges(); if (currentForm == FORM_OPTIMIZED) { return ((ByteArray) currentMessage).size(); } else if (currentForm == FORM_BYTES) { return ((byte[]) currentMessage).length; } byte[] bytes = this.getAsBytes(); return bytes.length; }
/** * Get the content length for this SOAPPart. * This will force buffering of the SOAPPart, but it will * also cache the byte[] form of the SOAPPart. * * @return the content length in bytes */ public long getContentLength() throws AxisFault { saveChanges(); if (currentForm == FORM_OPTIMIZED) { return ((ByteArray) currentMessage).size(); } else if (currentForm == FORM_BYTES) { return ((byte[]) currentMessage).length; } byte[] bytes = this.getAsBytes(); return bytes.length; }
/** * This is the number of attachments. * * @return the number of attachments */ public int getAttachmentCount() { if (_askedForStreams) { throw new IllegalStateException(Messages.getMessage("concurrentModificationOfStream")); } try { mergeinAttachments(); // force a serialization of the message so that // any attachments will be added soapPart.saveChanges(); return orderedAttachments.size(); } catch (AxisFault e) { log.warn(Messages.getMessage("exception00"),e); } return 0; }
/** * Get the content length for this SOAPPart. * This will force buffering of the SOAPPart, but it will * also cache the byte[] form of the SOAPPart. * * @return the content length in bytes */ public long getContentLength() throws AxisFault { saveChanges(); if (currentForm == FORM_OPTIMIZED) { return ((ByteArray) currentMessage).size(); } else if (currentForm == FORM_BYTES) { return ((byte[]) currentMessage).length; } byte[] bytes = this.getAsBytes(); return bytes.length; }
try { mSOAPPart.saveChanges(); } catch (AxisFault axisFault) { log.error(Messages.getMessage("exception00"), axisFault);
try { mSOAPPart.saveChanges(); } catch (AxisFault axisFault) { log.error(Messages.getMessage("exception00"), axisFault);
try { mSOAPPart.saveChanges(); } catch (AxisFault axisFault) { log.error(Messages.getMessage("exception00"), axisFault);