2

您对为 SOAP客户端应用程序设置 Axis2 和 Rampart 有任何了解吗?

我已经通过 Eclipse 将 Axis2 和 Rampart 的 jar 文件添加到构建路径中,并将 Rampart 的 jar 和 mar 文件处理到 Axis 的文件结构中。

我的 Axis/Rampart 设置有问题,但我不知道是什么……</p>

这就是日志给我的所有内容:

com.good.gc10.Fault:无法在 com.good.gcTalk.GCTActivationPinHandler.main(GCTActivationPinHandler.java:34) 处的 com.good.gcTalk.GCSoapClient.(GCSoapClient.java:51) 实例化 GCServiceStub 原因 :org .apache.axis2.AxisFault:无法使用模块: com.good.gcTalk.GCSoapClient.(GCSoapClient.java:45) 的 org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:363) 的壁垒

4

1 回答 1

0

Have you set your Config Context?

This needs to be set before you can engage Rampart, You also need to have the folder structure correct. ie In the below example you would need to have the following subfolder in Axis2WithRampart: Conf, Resources, Modules

If you add log4j with the Rampart & Axis 2 settings you get more information logged. I can tell you how to do this if you're not sure.

enter configContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem("Axis2WithRampart/repository", null); 
//create the stub
stub = new MyRampartServiceStub(configContext,"http://localhost:8080/axis2/services/MyRampartService"); here
于 2012-06-07T03:55:42.973 回答