代码拉取完成,页面将自动刷新
Hprose 是高性能远程对象服务引擎(High Performance Remote Object Service Engine)的缩写。
它是一个先进的轻量级的跨语言跨平台面向对象的高性能远程动态通讯中间件。它不仅简单易用,而且功能强大。你只需要稍许的时间去学习,就能用它轻松构建跨语言跨平台的分布式应用系统了。
Hprose 支持众多编程语言,例如:
通过 Hprose,你就可以在这些语言之间方便高效的实现互通了。
本项目是 Hprose 的 ASP 语言版本实现。
你不需要使用 JScript 的源文件,你只需要在你的 asp 页面中包含 hprose-asp.js
就够了。你可以用 VBScript 或 JScript 来编写 hprose 服务器和客户端。
使用 VBScript 来写是这样的:
<%@ CODEPAGE=65001 %>
<script runat="server" language="JScript" src="hprose/hprose-asp.js"></script>
<%
Function hello(name)
hello = "Hello " & name & "!"
End Function
Dim hserver
Set hserver = HproseHttpServer.create()
hserver.setDebugEnabled(true)
hserver.addFunction GetRef("hello")
hserver.start
%>
使用 JScript 来写是这样的:
<%@ CODEPAGE=65001 %>
<script runat="server" language="JScript" src="hprose/hprose-asp.js"></script>
<script runat="server" language="JScript">
function hello(name) {
return "Hello " + name + "!";
}
var hserver = new HproseHttpServer();
hserver.setDebugEnabled(true);
hserver.addFunction(hello);
hserver.start();
</script>
使用 VBScript 来写是这样的:
<%@ CODEPAGE=65001 %>
<script runat="server" language="JScript" src="hprose/hprose-asp.js"></script>
<%
Response.CodePage = 65001
Response.CharSet = "UTF-8"
Set client = HproseHttpClient.create("http://127.0.0.1/server.asp")
Response.Write client.hello("World")
%>
使用 JScript 来写是这样的:
<%@ CODEPAGE=65001 %>
<script runat="server" language="JScript" src="hprose/hprose-asp.js"></script>
<script runat="server" language="JScript">
Response.CodePage = 65001;
Response.CharSet = "UTF-8";
var client = new HproseHttpClient("http://127.0.0.1/server.asp");
Response.write(client.hello("World"));
</script>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。