parameters - Calling Client-Side WCF Service With Type List<Of T> -
I am creating a multi-file upload service which also shows upload progress for each file.
If I wanted to design my WCF method as a SOP contract, I do something like this:
var request = IService.UploadMethod (list & lt; Upload & gt; request);
However, how can I type the parameter request "" type " list & lt; upload & gt;
" when I call the method from the customer ( .upload.svc/ Upload Image / Request "")?
Thank you for the help, thanks.
You are using SOAP as you say - which means, Can not fetch from the URL URL (REST-style), as the second part of your posting (../upload.svc/ upload upload / "request") will be notified.
What you need to do in SOAP You have created your client-side proxy by using Visual Studio or svcutil
:
// Create client-side proxy, read URI from config service client client proxy = new service client (); & Lt; Upload & gt; _list = new list & lt; Upload & gt; (); // Add your uploads - Do not know what - just a file name? Original // content of the file? This is _list.Add (..........) for you; Var response = clientProxy.UploadMethod (_list);
Mark
Comments
Post a Comment