English 中文(简体)
作为WCF REST服务的回报值通过超文本处理
原标题:Passing HTMLPage as a return value of WCF REST Service
  • 时间:2012-04-11 00:24:22
  •  标签:
  • wcf
  • html

I want to pass HTMLPage as a return value of my WCF REST Service to my HTML5 application (client). Is there a way to do this? Or any other approach?

最佳回答

简单方式:将<代码>Stream从您希望从超文本页面返回的操作中退回,并将即将发送的内容类型确定为“文本/html”。 http://blogs.msdn.com/b/carlosfigueira/archive/2008/04/17/wcf-raw-programming-model-web.aspx”rel=“nofollow”http://blogs.msdn.com/b/carlosfigueira/archive/2008/04/17/wcf-raw-programming-del-web.aspx。

如果你不希望建立超文本页面,而是希望能够将某些物体转换成网页,那么你就不得不将一些物体深入到世界合作框架的纳尔多,并且使用像信息格式这样的信息形式来为你们转换。 这确实是更多的工作,因此,我强烈建议采取简单的方式,除非您在目标与代表之间已有某种制图。

问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签