"pbd22" <dush... at (no spam) gmail.com> wrote in message
news:7a9a5cb7-4c7c-475d-83b6-6c6b88652037 at (no spam) d34g2000vbm.googlegroups.com...
Hi.
I am designing a multi-file upload service that also shows upload
progress for each file.
If I was to design my WCF method as a SOAP contract, I would do
something like this:
var request = IService.UploadMethod(List<Upload> request);
But, how do I pass the parameter ""request"" of type "List<Upload>"
when I am calling the method from the client (../upload.svc/
uploadpictures/""request"")?
Help appreciated, thanks.
I would assume Upload would just be a string of the filepath to upload.
On the client-side it would be this.
var requests = new List<String>();
requests.Add(filepath);
var cleint = new WCFservice()
client.Upload(requests);
client.close();
On server-side it would be this.
UploadMethod(List<String> requests)
foreach(var request in requests
{
unloadpic.path = request;
}
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4524 (20091019) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com