Hi again. I have hit a problem with the web service I am creating. I need to invoke a method which includes as a parameter a PDF file. Below is the code I'm using to send the file, and I can send small files (largest I have sent is 12kb), but beyond that file size I get 'java.lang.ArrayIndexOutOfBoundsException: 8192', meaning the end-of-file cannot be reached. Any ideas of what the limiting factor is here, and any possible solution?
Data larger than a few K should probably be sent as attachments. Look for "SAAJ" (Soap with Attachments API for Java) related info in the Axis docs.
Joined: Mar 05, 2007
There is a SAAJ example supplied with Axis which constructs a SOAPMessage and passes it to the call method. However I need to implement authentication I'm not sure how I would handle the security headers this way, would it mean implementing it by hand?
Presumably the code below is adding an attachment, but the same problem occurs.
[ March 09, 2007: Message edited by: Alan Sunley ]