非官方轴2 / c中的测试示例

时间:2013-07-10 09:08:58

标签: c web-services axis2 axis2c

您好我想问一个关于非官方轴2 / c的问题。

我安装了最新版本并尝试运行示例“ExampleJsonEchoClient”(在https://code.google.com/p/axis2c-unofficial/wiki/ExampleJsonEchoClient中找到) 当一个页面在localhost中加载时,带有一个检查按钮,点击它时没有响应。

在同一页面提供的指南中有以下步骤:“将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

我无法弄明白......

1 个答案:

答案 0 :(得分:0)

您可以使用任何目录结构,但echo.html期望jquery.jsecho.jsecho.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网站上所写,版本1.x和2.x之间没有特别的区别,除了Internet Explorer支持:

  

jQuery 2.x与jQuery 1.x具有相同的API,但不支持   Internet Explorer 6,7或8。