Solved

event driven WCF for Downloading PDF

Posted on 2013-06-01
1
272 Views
Last Modified: 2014-11-12
our company  provide  WEB Service to client - fill out documents on line.
Now Clients want  to download  pdf document to their client side.
Some document are huge, And we have a lot of clients.
What the best scenario  could be in the situation ?
Ideally I would like to have  some event driven Windows Service.
So when document is filed  out , event occurred. If Client is subscribed to this event,
WCF  download the pdf to the client side . This way , I guess we avoid transferring huge amount of data via network.
So should I use WCF? Or it could be another architectural solution?
0
Comment
Question by:Yampolka
1 Comment
 
LVL 1

Accepted Solution

by:
farooqam earned 500 total points
ID: 39217919
While a publish-subscribe scenario is possible with WCF, it may not be appropriate in your scenario since your clients are remote which precludes the use of NetTcpBinding or NetNamedPipes binding. Using WSDualHttpBinding is troublesome as well.

A more appropriate solution would have the server send a message to a queue which the client can monitor. The message's payload would be the PDF document. You may want to have a look at Windows Azure service bus and queues if Azure is a possibility for you.

But a more simpler solution would be to give the client the URL of the PDF document when it is ready - a rest style service. Either way you are going to have to transfer possibly large files over the network so may as well make the solution as simple as possible.

Hope this helps.
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here I am going to explain creating proxies at runtime for WCF Service. So basically we use to generate proxies using Add Service Reference and then giving the Url of the WCF service then generate proxy files at client side. Ok, what if something ge…
Many of the companies I’ve worked with have embraced cloud solutions due to their desire to “get out of the datacenter business.” The ability to achieve better security and availability, and the speed with which they are able to deploy, is far grea…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question