Hi All, In the following code, I get a "java.io.IOException: Resource has been deleted". What am I doing wrong?
SOAPMessage reply = con.call( soapMsg, endPoint ); con.close(); boolean fault = reply.getSOAPPart().getEnvelope().getBody().hasFault(); config.getLog().debug("SOAP Fault: " + fault); if (fault) { SOAPFault faultDetail = reply.getSOAPPart().getEnvelope().getBody().getFault(); String msg = "Error in transaction: " + faultDetail.getFaultCode(); config.getLog().fatal(msg); throw new Exception(msg); } DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Iterator attItr = reply.getAttachments(); Document attachment = null; while( attItr.hasNext() ) { config.getLog().info("\tattachment found"); AttachmentPart attPart = (AttachmentPart)attItr.next(); attachment = builder.parse(new BufferedInputStream( attPart.getDataHandler().getInputStream())); // <-- ERROR break; } I'm using Axis 1.2RC3. TIA, Ed. -- Eduardo Elgueta Senior Consultant Navix correo/email: [EMAIL PROTECTED] teléfono/phone: +56 (2) 381-1467 celular/mobile: +56 (9) 821-0033 web: www.navix.cl Av. Once de Septiembre 1945 Of. 502 Providencia 750-0503 Santiago, Chile
begin:vcard fn:Eduardo Elgueta n:Elgueta;Eduardo org:Navix S.A. adr:Provicencia;;Av. Once de Septiembre 1945 Of. 502;Santiago;RM;750-0503;Chile email;internet:[EMAIL PROTECTED] title:Senior Consultant tel;work:+56 (2) 381-1467 tel;cell:+56 (9) 821-0033 x-mozilla-html:FALSE url:http://www.navix.cl version:2.1 end:vcard