你好,我想问一个关于非官方 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.js
和 echo.js
与 在同一目录中>echo.html
.
在 echo.html
中可以轻松更改路径,但在示例目录结构中很简单,即所有文件(echo.html
、jquery .js
和 echo.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/