Dear Wiki user, You have subscribed to a wiki page or wiki category on "Ws Wiki" for change notification.
The following page has been changed by BenJansen: http://wiki.apache.org/ws/FrontPage/Axis/AttachmentProblems The comment on the change is: Added note about "Resource has been deleted" error ------------------------------------------------------------------------------ </deployment> }}} + == Disappearing Attachments (AKA java.io.IOException: Resource has been deleted.) == + + If you are getting a "Resource has been deleted" IOException when trying to access an attachment, make sure you have not told the request SOAPMessage to write out anywhere. For example: + + {{{ + // Build the SOAP message out of the HTTP request. + SOAPMessage request = getSoapRequest(); + // Output message for debugging purposes or whatever. + request.writeTo( System.out ); + }}} + + If you later try to access one of the request's AttachmentParts and write out its contents, you'll get the "Resource has been deleted" exception. + --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
