我可以创建下载流的PDF格式的Web服务 [英] Can I create a web service that streams a pdf for download

查看:117
本文介绍了我可以创建下载流的PDF格式的Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有使用Web服务太多的经验,但我认为我有这一个Web服务将工作的重大问题。

I don't have much experience with web services, but I think I have a problem for which a web service would work great.

我公司刚刚购买CETE全文合并的.NET版本(伟大的产品,BTW)。我们同时使用的.Net和放大器; ASP code,很可能会用java的未来也是如此。

My company has just purchased a .net version of Cete Pdf Merger (great product btw). We use both .Net & asp code and will likely use java in the future as well.

该方案是一种技术(ASP,JAVA,.NET)将有原始数据的列表,如字段名称和放大器的数组;值。这些数据将被发布到Web服务,然后将打开一个给定的PDF,比赛PDF表单字段的字段名数组,抢相应的值,填充它的PDF格式,然后流的PDF格式返回给用户下载。

The scenario is that one technology (asp, java, .net) would have a list of raw data such as an array of field names & values. This data would be posted to the web service that would then open a given pdf, match pdf form fields to the field names array, grab the corresponding value, populate it on the pdf, and then stream the pdf back to the user to download.

这个问题似乎可行吗?任何疑难杂症的我可能会碰到,你知道吗?做(Web服务,WCF,???)的任何preferred方法

Does this seem feasible? Any gotcha's I might run into that you know of? Any preferred method of doing (Web Services, WCF, ???)

推荐答案

简短的回答:WCF

更长的答案是:你似乎正在WCF和Web服务之间的区别。也许你会想老的.asmxWeb服务。微软现在认为它们是遗留软件,并建议您使用WCF为所有新的Web服务开发。

Longer answer is: you seem to be making a distinction between WCF and "web services". Perhaps you're thinking of the old ".asmx" web services. Microsoft now considers them to be "legacy software", and suggests you use WCF for all new web service development.

这篇关于我可以创建下载流的PDF格式的Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆