java实现webservice流程+实现多个接口配置

  1. 配置pom.xml(引入jar包)

   

      axis

      axis-ant

      1.4

   

 

   

      org.apache.axis

      axis

      1.4

   

   

      axis

      axis-jaxrpc

      1.4

   

   

      org.springframework

      spring-remoting

      2.0.8

   

   

      wsdl4j

      wsdl4j

      1.6.2

   

   

      commons-discovery

      commons-discovery

      0.2

   

   

      com.google.zxing

      core

      2.2

   

  1. 配置web.xml

    AxisServlet

    org.apache.axis.transport.http.AxisServlet

 

 

 

    AxisServlet

    /servlet/AxisServlet

 

 

 

    AxisServlet

    *.jws

 

 

 

    AxisServlet

    /services/*

 

  1. 添加配置文件server-config.wsdd(放在WEB-INF下面)

java实现webservice流程+实现多个接口配置_第1张图片

 

 

         

         

         

         

         

         

                  

                           

                  

                  

                           

                           

                  

         

         

         

         

          http://xml.apache.org/axis/wsdd/

         

         

         

                  

                  

         

         

                  

         

 

 

         

 

 

 

 

 

  1. 地址:http://localhost:8080/wzplat/services/ypWebService?wsdl

你可能感兴趣的:(JAVA)