3 Star 4 Fork 0

Hprose / hprose-asp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Hprose for ASP



简介

Hprose 是高性能远程对象服务引擎(High Performance Remote Object Service Engine)的缩写。

它是一个先进的轻量级的跨语言跨平台面向对象的高性能远程动态通讯中间件。它不仅简单易用,而且功能强大。你只需要稍许的时间去学习,就能用它轻松构建跨语言跨平台的分布式应用系统了。

Hprose 支持众多编程语言,例如:

  • AAuto Quicker
  • ActionScript
  • ASP
  • C++
  • Dart
  • Delphi/Free Pascal
  • dotNET(C#, Visual Basic...)
  • Golang
  • Java
  • JavaScript
  • Node.js
  • Objective-C
  • Perl
  • PHP
  • Python
  • Ruby
  • ...

通过 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>
The MIT License (MIT) Copyright (c) 2008-2016 http://hprose.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Hprose 全名是高性能远程对象服务引擎。 它是一个新型的轻量级跨语言跨平台面向对象的高性能远程动态通讯中间件。它不但易学易用,而且功能强大。本项目是 Hprose 的 ASP 版本实现。 展开 收起
ASP
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
ASP
1
https://gitee.com/andot/hprose-asp.git
git@gitee.com:andot/hprose-asp.git
andot
hprose-asp
hprose-asp
master

搜索帮助