Hi Jonah, I think this doesn't work because this first sample is a Username Token scenario and it doesn't work with HTTP transport. These samples use the simple Axis2 server and it only supports HTTP. But UT needs HTTPS.
This transport check at the Rampart server side was added recently and it seems like the sample is not updated yet. This is a bug. Try running other samples 2,3 etc.. Those should work I think.. Thanks, ~Isuru On Thu, Nov 12, 2009 at 8:18 PM, jonah <liu.jo...@gmail.com> wrote: > Hi,I am using rampart-1.4 in axis2-1.5.1. > > I installed rampart-1.4 according to Rampart Quick Start Guide document. > > I started service by using >ant service.01 > When I caledl client by using ant client.01 > I got the output like following: > > *D:\webService\rampart-1.4\samples\policy>ant client.01 > Buildfile: build.xml* > *check.dependency:* > *client.01: > [mkdir] Created dir: > D:\webService\rampart-1.4\samples\policy\build\client_r > epositories\sample01 > [mkdir] Created dir: > D:\webService\rampart-1.4\samples\policy\build\client_r > epositories\sample01\conf > [mkdir] Created dir: > D:\webService\rampart-1.4\samples\policy\build\client_r > epositories\sample01\modules > [copy] Copying 1 file to > D:\webService\rampart-1.4\samples\policy\build\cli > ent_repositories\sample01\modules > [copy] Copying 1 file to > D:\webService\rampart-1.4\samples\policy\build\cli > ent_repositories\sample01\modules > [javac] Compiling 2 source files to > D:\webService\rampart-1.4\samples\policy > \build\temp_client > [copy] Copying 1 file to > D:\webService\rampart-1.4\samples\policy\build\tem > p_client > [copy] Copying 1 file to > D:\webService\rampart-1.4\samples\policy\build\tem > p_client > [java] log4j:WARN No appenders could be found for logger > (org.apache.axis2. > deployment.FileSystemConfigurator). > [java] log4j:WARN Please initialize the log4j system properly. > [java] Exception in thread "main" org.apache.axis2.AxisFault: Missing > wsse: > Security header in request > [java] at > org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThr > owAxisFault(RampartReceiver.java:166) > [java] at > org.apache.rampart.handler.RampartReceiver.invoke(RampartRece > iver.java:99) > [java] at org.apache.axis2.engine.Phase.invoke(Phase.java:318) > [java] at > org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:251 > ) > [java] at > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:16 > 0) > [java] at > org.apache.axis2.description.OutInAxisOperationClient.handleR > esponse(OutInAxisOperation.java:364) > [java] at > org.apache.axis2.description.OutInAxisOperationClient.send(Ou > tInAxisOperation.java:417) > [java] at > org.apache.axis2.description.OutInAxisOperationClient.execute > Impl(OutInAxisOperation.java:229) > [java] at > org.apache.axis2.client.OperationClient.execute(OperationClie > nt.java:165) > [java] at > org.apache.axis2.client.ServiceClient.sendReceive(ServiceClie > nt.java:540) > [java] at > org.apache.axis2.client.ServiceClient.sendReceive(ServiceClie > nt.java:521) > [java] at > org.apache.rampart.samples.policy.sample01.Client.main(Unknow > n Source) > [java] Caused by: org.apache.rampart.RampartException: Missing > wsse:Securit > y header in request > [java] at > org.apache.rampart.RampartEngine.process(RampartEngine.java:1 > 17) > [java] at > org.apache.rampart.handler.RampartReceiver.invoke(RampartRece > iver.java:92) > [java] ... 10 more > [java] Java Result: 1* > *BUILD SUCCESSFUL > Total time: 5 seconds* > *D:\webService\rampart-1.4\samples\policy>* > ** > ** > *And ,the webservice server side had no output.* > ** > > *What should I do to correct the problem.* > ** > *Thanks a lot.* > > > > -- Senior Software Engineer, WSO2 Inc. http://wso2.org/ Blog : http://isurues.wordpress.com/