Hola,
Tengo que llamar a una función de un WS enviando un fichero como attachment. Estoy utilizando Axis2 (http://axis.apache.org/axis2/java/core/docs/mtom-guide.html#a3).
Me da el siguente error:
DEBUG org.apache.commons.httpclient.MultiThreadedHttpCon nectionManager$ConnectionPool.notifyWaitingThread - Notifying no-one, there are no waiting threads
DEBUG org.apache.axiom.om.util.StAXUtils.createXMLStream Reader - XMLStreamReader is org.apache.axiom.util.stax.dialect.WoodstoxStreamR eaderWrapper
INFO org.apache.axis2.builder.BuilderUtil.getSOAPBuilde r - OMException in getSOAPBuilder
684org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]
at org.apache.axiom.om.impl.builder.StAXOMBuilder.nex t(StAXOMBuilder.java:297)
at org.apache.axiom.soap.impl.builder.StAXSOAPModelBu ilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:19 9)
at org.apache.axiom.soap.impl.builder.StAXSOAPModelBu ilder.<init>(StAXSOAPModelBuilder.java:155)
at org.apache.axiom.soap.impl.builder.StAXSOAPModelBu ilder.<init>(StAXSOAPModelBuilder.java:141)
at org.apache.axis2.builder.BuilderUtil.getSOAPBuilde r(BuilderUtil.java:682)
at org.apache.axis2.transport.TransportUtils.createDo cumentElement(TransportUtils.java:210)
at org.apache.axis2.transport.TransportUtils.createSO APMessage(TransportUtils.java:140)
at org.apache.axis2.transport.TransportUtils.createSO APMessage(TransportUtils.java:103)
at org.apache.axis2.transport.TransportUtils.createSO APMessage(TransportUtils.java:67)
at org.apache.axis2.description.OutInAxisOperationCli ent.handleResponse(OutInAxisOperation.java:354)
at org.apache.axis2.description.OutInAxisOperationCli ent.send(OutInAxisOperation.java:417)
at org.apache.axis2.description.OutInAxisOperationCli ent.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(Op erationClient.java:165)
at org.tempuri.upload.UploadStub.AppendChunk(UploadSt ub.java:728)
¿alguna idea?
Gracias