Dave Tolls wrote:So you need to get your web service method to handle uploading a file.
At the moment it isn't.
It simply accepts a String representing the path on the client.
You need to use (and I'm a little rusty here) MTOM. At least that used to be the thing.
Here's a ranch thread from 2011. H Paul's posts are the one's I would look at, at least for MTOM.
Paul Clapham wrote:Well, that's not the way to transfer a file to an FTP server. But my question remains: why are you using a file on your server at all?
Paul Clapham wrote:There's no point in uploading a file unless you are uploading it to some particular location. You didn't tell us where you want to upload the files to -- it looks like you haven't thought that through yet?
Wait a minute, I just reread your post; you said you wanted to upload to an FTP server. But I don't see any code to upload to an FTP server in what you posted there, instead you're uploading to a file. So why aren't you uploading to an FTP server in that code?