无法参与模块壁垒,不发送安全详细信息

发布于 2024-09-27 10:39:34 字数 1657 浏览 2 评论 0原文

我使用 Eclipse 和 WTP 插件来创建客户端来调用安全 Web 服务。

我已经使用 Web 服务客户端向导来生成客户端,现在我想在 Eclipse 项目中配置 apache Rampart 以调用受用户名令牌保护的服务,

错误是“无法使用模块 Rampart”。 -------- 更新 ----

纠正无法参与模块壁垒后,我得到以下信息:

[INFO] Deploying module: addressing-1.5.2 - file:/E:/Source Code Evaluations/axis2Codes/myAxisClient/WebContent/WEB-INF/modules/addressing-1.5.2.mar
[INFO] Deploying module: metadataExchange-1.5.2 - file:/E:/Source Code Evaluations/axis2Codes/myAxisClient/WebContent/WEB-INF/modules/mex-1.5.2.mar
[INFO] Deploying module: mtompolicy-1.5.2 - file:/E:/Source Code Evaluations/axis2Codes/myAxisClient/WebContent/WEB-INF/modules/mtompolicy-1.5.2.mar
[INFO] Deploying module: ping-1.5.2 - file:/E:/Source Code Evaluations/axis2Codes/myAxisClient/WebContent/WEB-INF/modules/ping-1.5.2.mar
[INFO] Deploying module: rampart-1.4 - file:/E:/Source Code Evaluations/axis2Codes/myAxisClient/WebContent/WEB-INF/modules/rampart-1.4.mar
[INFO] Deploying module: script-1.5.2 - file:/E:/Source Code Evaluations/axis2Codes/myAxisClient/WebContent/WEB-INF/modules/scripting-1.5.2.mar
[INFO] Deploying module: soapmonitor-1.5.2 - file:/E:/Source Code Evaluations/axis2Codes/myAxisClient/WebContent/WEB-INF/modules/soapmonitor-1.5.2.mar
[INFO] Deploying Web service: version.aar - file:/E:/Source Code Evaluations/axis2Codes/myAxisClient/WebContent/WEB-INF/services/version.aar
[INFO] Unable to sendViaPost to url[https://192.168.9.120:9443/services/HelloService.HelloServiceHttpsEndpoint/]
org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized

------------------------ --------------更新结束--------------------

提前致谢

I'm using eclipse with WTP plugin for creating a client to call secure web service.

I have used web service client wizard to generate the client and now I want to configure apache rampart in the eclipse project to call the service protected with username token

the error is "can not engage module rampart".
-------- update ----

After getting the cannot engage module rampart corrected, I'm getting folllowing:

[INFO] Deploying module: addressing-1.5.2 - file:/E:/Source Code Evaluations/axis2Codes/myAxisClient/WebContent/WEB-INF/modules/addressing-1.5.2.mar
[INFO] Deploying module: metadataExchange-1.5.2 - file:/E:/Source Code Evaluations/axis2Codes/myAxisClient/WebContent/WEB-INF/modules/mex-1.5.2.mar
[INFO] Deploying module: mtompolicy-1.5.2 - file:/E:/Source Code Evaluations/axis2Codes/myAxisClient/WebContent/WEB-INF/modules/mtompolicy-1.5.2.mar
[INFO] Deploying module: ping-1.5.2 - file:/E:/Source Code Evaluations/axis2Codes/myAxisClient/WebContent/WEB-INF/modules/ping-1.5.2.mar
[INFO] Deploying module: rampart-1.4 - file:/E:/Source Code Evaluations/axis2Codes/myAxisClient/WebContent/WEB-INF/modules/rampart-1.4.mar
[INFO] Deploying module: script-1.5.2 - file:/E:/Source Code Evaluations/axis2Codes/myAxisClient/WebContent/WEB-INF/modules/scripting-1.5.2.mar
[INFO] Deploying module: soapmonitor-1.5.2 - file:/E:/Source Code Evaluations/axis2Codes/myAxisClient/WebContent/WEB-INF/modules/soapmonitor-1.5.2.mar
[INFO] Deploying Web service: version.aar - file:/E:/Source Code Evaluations/axis2Codes/myAxisClient/WebContent/WEB-INF/services/version.aar
[INFO] Unable to sendViaPost to url[https://192.168.9.120:9443/services/HelloService.HelloServiceHttpsEndpoint/]
org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized

_----------------------------------- update end -------------------

thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

原野 2024-10-04 10:39:34

您可能没有将 rampart-1.5.mar (或更新版本)复制到 axis2 modules 目录。

You probably not copied rampart-1.5.mar (or newer) to axis2 modules directory.

秋千易 2024-10-04 10:39:34

如果您不使用 axis 存储库进行开发并使用 eclipse,则无需手动参与模块,只需将 Rampar 和 rahas jar 放置到类路径中即可正常工作。

谢谢

In cases when you are not using axis repositories for development and using eclipse, you don't need to manually engage the module, you can just place the rampar and rahas jars to class path and it will work fine.

Thanks

云归处 2024-10-04 10:39:34

我不得不做类似的事情。
我将存根设置为指向本地 http 地址而不是远程 Web 服务,即:
“http://localhost:88/onca/soap3”

然后我使用 TCPMon 检查正在设置的内容
听#88
目标主机名 127.0.0.1
TargetPort 8080

这让我确认我发送的 SOAP 请求符合我的预期。
我还将请求复制到 SOAP UI 中并检查是否可以从那里成功发送。

I had to do something similar.
I set my stub to point to a local http address instead of the remote webservice, ie:
"http://localhost:88/onca/soap3"

I then used TCPMon to check what was being set
Listen # 88
Target HostName 127.0.0.1
TargetPort 8080

This let me confirm that the SOAP request I was sending was what I expected.
I also copied the request into SOAP UI and checked it could be sent successfully from there.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文