English 中文(简体)
• 摆脱客户会议。 in
原标题:Get rid of client-config.wsdd in Axis
  • 时间:2009-10-09 09:25:54
  •  标签:

我正在建立测试环境,我需要从方案上登记我的手递/运输,而不是使用客户会议。

<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
 <handler name="MyClient" type="java:foo.bar.MyClient"/>
 <transport name="MyTransport" pivot="MyClient"/>
</deployment>

你们是否知道这是否可行?

提前感谢。

最佳回答

科索沃、我检查了轴源,以下法典解决了我的问题:

AxisProperties.setProperty(EngineConfigurationFactory.SYSTEM_PROPERTY_NAME, "foo.bar.MyEngineConfigurationFactory");

......

import org.apache.axis.EngineConfiguration;
import org.apache.axis.EngineConfigurationFactory;
import org.apache.axis.configuration.BasicClientConfig;

public class MyEngineConfigurationFactory implements EngineConfigurationFactory {

    public static EngineConfigurationFactory newFactory(Object param) {
        return new MyEngineConfigurationFactory();
    }

    public EngineConfiguration getClientEngineConfig() {
        BasicClientConfig cfg = new BasicClientConfig();
        cfg.deployTransport("MyTransport", new MyClient());
        return cfg;
    }

    public EngineConfiguration getServerEngineConfig() {
        return null;
    }
}

这就是说。 我希望它能帮助某人。

问题回答

另一方面,你可以增加新的客户会议。 wsd file to resourceDirectory.





相关问题
热门标签