views:

32

answers:

1

Hi all, 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

A: 

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

Michał Niklas
Hi, I got the error cleared, thanks, but rampart is not sending security info, any idea why?
lakhlaniprashant.blogspot.com
While you use `https` you should check on the server side if your query is received. Maybe server want you to use SSL with client certificate? You must check 192.168.9.120 web server logs. If it is Apache then look at `/var/logs/error.log` and `/var/logs/ssl.log`
Michał Niklas