开发者

Cannot engage module rampart, not sending security details

开发者 https://www.devze.com 2023-01-20 06:41 出处:网络
I\'m using eclipse with WTP plugin for crea开发者_Go百科ting a client to call secure web service.

I'm using eclipse with WTP plugin for crea开发者_Go百科ting 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


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


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消