c - 非官方 axis2/c 中的测试示例

标签 c web-services axis2 axis2c

你好,我想问一个关于非官方 axis2/c 的问题。

我安装了最新版本并尝试运行示例“ExampleJsonEchoClient”(在 https://code.google.com/p/axis2c-unofficial/wiki/ExampleJsonEchoClient 中找到) 当页面在本地主机中加载时,带有复选按钮,单击它时没有任何响应。

在同一页提供的指南中有此步骤:“将 jquery 下载到该目录并将其命名为 jquery.js”并提供指向:http://jquery.com/download/ 的链接

我应该下载哪个版本?我应该将整个文件夹命名为 jquery.js 吗?或者使用名为 jquery 的文件夹中的文件?

提前致谢。

编辑: 谢谢!这奏效了!

奇怪的是,我现在在尝试将非官方的 axis2/c 安装到第二台计算机时遇到安装问题

我按照说明操作,但收到以下错误消息

json/axis2_json_writer.c: In function 'axis2_json_writer_get_json_string':
json/axis2_json_writer.c:173:64: error: 'JSON_C_TO_STRING_PLAIN' undeclared
(first use in this function)
json/axis2_json_writer.c:173:64: note: each undeclared identifier is reported only once for each function it appears in
make[7]: *** [axis2_json_writer.lo] Error 1
make[7]: Leaving directory `/home/.../axis2c-unofficial/src/core/transport/http/sender'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory `/home/.../axis2c-unofficial/src/core/transport/http/sender'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/.../axis2c-unofficial/src/core/transport/http'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/.../axis2c-unofficial/src/core/transport'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/.../axis2c-unofficial/src/core'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/./axis2c-unofficial/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/.../axis2c-unofficial'
make: *** [all] Error 2

我想不通...

最佳答案

您可以使用任何目录结构,但 echo.html 需要 jquery.jsecho.js 在同一目录中>echo.html.

echo.html 中可以轻松更改路径,但在示例目录结构中很简单,即所有文件(echo.htmljquery .jsecho.js) 位于 /var/www/json-echo/ 目录中。

/var/www/json-echo/
                echo.html
                echo.js
                jquery.js

要使用 JSON,您可以根据自己的喜好使用任何现代版本的 jQuery(1.x 或 2.x),压缩或未压缩。下载 jquery-x.xx.x(.min).js 后将其重命名为 jquery.js(或编辑 echo.html) .

正如在 jquery.org/download 站点上所写的那样,除了 Internet Explorer 支持之外,版本 1.x 和 2.x 之间没有具体区别:

jQuery 2.x has the same API as jQuery 1.x, but does not support Internet Explorer 6, 7, or 8.

关于c - 非官方 axis2/c 中的测试示例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17566629/

相关文章:

c - 使用 if 函数,如果条件为真,不起作用?

web-services - 在 Web 服务 URL 中使用加密的数据库 ID 而不是 UUID 是个好主意吗?

java - 在 java 中执行 Axis2 webservice 客户端时响应代码为 null 但 webservice 在服务器端成功执行

java - 关于从 WSDL 生成客户端代码

c - 如何使用 printf 在 C 中打印括号?

c++ - C/C++ 用 ascii 艺术声明 2D/3D 数组

c - 如何在 Ubuntu 上使用 C 文件 I/O 创建文件

wcf - 配置 WCF 服务以接受不合格的参数

c# - 创建JavascriptConverter时,如何返回一个数组?

java - 检查 Axis2 Web 服务中接收到的数据的大小