• xfire配置(java中的webservice)


    开发时需要在src中新建META-INF=>xfire=>services.xml 这样编译出来就在classes文件夹下。

    services.xml配置

    <?xml version="1.0" encoding="UTF-8"?>  
    <beans>  
    <service  xmlns="http://xfire.codehaus.org/config/1.0">  
        <name>DeviceService</name>  
        <serviceClass>com.ws.service.IDevice</serviceClass>  
        <implementationClass>com.ws.serviceImp.DeviceService</implementationClass>  
    </service>   
    <service  xmlns="http://xfire.codehaus.org/config/1.0">  
        <name>RealWarnService</name>  
        <serviceClass>com.ws.service.IRealWarn</serviceClass>  
        <implementationClass>com.ws.serviceImp.RealWarnService</implementationClass>
    </service>
    <service  xmlns="http://xfire.codehaus.org/config/1.0">
        <name>RealDataService</name>
        <serviceClass>com.ws.service.IRealData</serviceClass>  
        <implementationClass>com.ws.serviceImp.RealDataService</implementationClass>
    </service>
    <service   xmlns="http://xfire.codehaus.org/config/1.0">
        <name>BatteryService</name>
        <serviceClass>com.ws.service.IBatteryService</serviceClass>  
        <implementationClass>com.ws.serviceImp.BatteryService</implementationClass>
    </service> 
    <service   xmlns="http://xfire.codehaus.org/config/1.0">
    <name>DischargeService</name>
        <serviceClass>com.ws.service.IDischarge</serviceClass>  
        <implementationClass>com.ws.serviceImp.DischargeService</implementationClass>
    </service>
    </beans>  

    测试网址:http://localhost:8080/ws/services/DischargeService?wsdl

    .net调用:http://localhost:8080/ws/services/DischargeService?wsdl

    java调用:http://localhost:8080/ws/services/DischargeService

  • 相关阅读:
    GAN对抗神经网络(原理解析)
    Wasserstein distance(EM距离)
    浅谈KL散度
    深度学习中 Batch Normalization是什么
    Batch Normalization的正确打开方式
    对于梯度消失和梯度爆炸的理解
    [转贴]loadrunner 场景设计-添加Unix、Linux Resources计数器
    Volley(四)—— ImageLoader & NetworkImageView
    SQL单表查询
    ifconfig命令详解
  • 原文地址:https://www.cnblogs.com/Anders888/p/5087891.html
Copyright © 2020-2023  润新知