I am sending the images one SOAP message at a time. The web service can handle an array of images but I have found the client implementation a whole lot easier (error handling, etc.) sending one at a time.
I think it will make tracking upload progress a lot easier too. By modifying HTTPUtils as Scott suggested I can count the payload bytes sent and track progress that way, it doesn't look to difficult.
Daniel: I did a quick search and saw a reference to SOAPHTTPConnection.getRequestCopy(), but there's no such method in the version I'm using.
Barry
At 13:01 06/08/2003, you wrote:
Are you tracking the image size uploaded or the whole xml stream? If it's the image size, you can simply sum up the image sizes uploaded; if it's the xml stream, you can
call getRequestCopy() to track the bytes. Hope this helps.
-Daniel Barry White wrote:
Hi,
I've built a web services client with Apache SOAP 2.3.1 which is used for uploading images. I would like to be able to track the number of bytes sent for a progress bar but have not found a way of doing this. It is a university project so I am still quite new to Java and SOAP.
I have looked through the classes and some of the sources too and have found no clues, or just got lost! I guess I need access to the output stream. Can anyone tell me if this is possible (it's always possible!) and if so maybe give me some pointers.
Thanks in advance,
Barry
