@WebService(name="AwmsServiceImpl")
public interface AwmsService {
@WebService(endpointInterface="com.huike.wms.ws.ws4awms.AwmsService")
public class AwmsServiceImpl implements AwmsService {
- <?xml version="1.0" encoding="UTF-8"?>
- <!-- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
- xmlns:jaxws="http://cxf.apache.org/jaxws"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
- http://cxf.apache.org/jaxws
- http://cxf.apache.org/schemas/jaxws.xsd"> -->
- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:aop="http://www.springframework.org/schema/aop"
- xmlns:context="http://www.springframework.org/schema/context"
- xmlns:jaxws="http://cxf.apache.org/jaxws"
- xsi:schemaLocation="http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
- http://www.springframework.org/schema/aop
- http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
- http://www.springframework.org/schema/context
- http://www.springframework.org/schema/context/spring-context-2.5.xsd
- http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
- <import resource="classpath:META-INF/cxf/cxf.xml" />
- <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
- <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
- <bean id="awmsServiceImpl" class="com.huike.wms.ws.ws4awms.AwmsServiceImpl"
- abstract="false" lazy-init="default" scope="prototype" autowire="default"
- dependency-check="default">
- <property name="awmsServices">
- <ref bean="awmsServices" />
- </property>
- <property name="productService">
- <ref bean="productService" />
- </property>
- <property name="resetUserPwService">
- <ref bean="resetUserPwService" />
- </property>
- </bean>
- <jaxws:endpoint id="awmsService" implementor="#awmsServiceImpl"
- address="/AwmsService" />
- <bean id="sortServiceImpl" class="com.huike.wms.ws.ws4sort.SortServiceImpl"
- abstract="false" lazy-init="default" scope="prototype" autowire="default"
- dependency-check="default">
- <property name="sortsService">
- <ref bean="sortsService" />
- </property>
- </bean>
- <jaxws:endpoint id="sortService" implementor="#sortServiceImpl"
- address="/SortService" />
- </beans>
web.xml
- <?xml version="1.0" encoding="UTF-8"?>
- <web-app version="2.5"
- xmlns="http://java.sun.com/xml/ns/javaee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
- http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
- <display-name>Struts 2.1.6</display-name>
- <!-- zh-cn encoding -->
- <filter>
- <filter-name>encodeFilter</filter-name>
- <filter-class>com.huike.hidp.util.EncodeFilter</filter-class>
- <init-param>
- <param-name>encode</param-name>
- <param-value>utf-8</param-value>
- </init-param>
- </filter>
- <!-- 字符编码映射 -->
- <filter-mapping>
- <filter-name>encodeFilter</filter-name>
- <url-pattern>/* </url-pattern>
- </filter-mapping>
- <!-- session超时定义,单位为分钟 --> <!-- 配置session时间 设置监听用来记录登陆人员的数量 Start -->
- <session-config>
- <session-timeout>780</session-timeout>
- </session-config>
- <listener>
- <listener-class>com.huike.hidp.util.listener.OnlineCounterListener</listener-class>
- </listener>
- <!-- End -->
- <!-- 配置sturts2的 -->
- <!-- 由于fckeditor上传文件重写了Struts2的FilterDispatcher -->
- <filter>
- <filter-name>struts2</filter-name>
- <filter-class>com.huike.hidp.util.filter.MyStrutsFilterDispatcher</filter-class>
- <init-param>
- <param-name>config</param-name>
- <param-value>struts-default.xml,struts-plugin.xml,
- ../xml/hidp/struts-admin.xml,../xml/hidp/struts-message.xml,
- ../xml/hidp/struts-privilege.xml,../xml/hidp/struts-organization.xml,
- ../xml/hidp/struts-address.xml,../xml/wms/inwarehouse/struts-inwarehouse.xml,
- ../xml/wms/sortinfo/struts-sortinfo.xml,../xml/wms/outwarehouse/struts-outwarehouse.xml,../xml/wms/atwarehouse/struts-atwarehouse.xml,
- ../xml/wms/compositequery/struts-compositequery.xml,../xml/wms/baseinfo/struts-baseinfo.xml,../xml/wms/system/struts-system.xml,
- ../xml/wms/interfacemanage/struts-interfacemanage.xml,../xml/wms/stockmanage/struts-stockmanage.xml</param-value> <!--,../xml/wms/ws/struts-ws.xml-->
- </init-param>
- </filter>
- <!-- <filter-mapping>
- <filter-name>struts2</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping> -->
- <!-- 配置系统启动页 -->
- <welcome-file-list>
- <welcome-file>/index.jsp</welcome-file>
- </welcome-file-list>
- <!--Start配置过滤文件用以限制手动输入jsp路径 -->
- <filter>
- <filter-name>dispatcherFilter</filter-name>
- <!-- <filter-class>com.huike.hidp.util.listener.DispatcherFilter</filter-class>-->
- <filter-class> com.huike.wms.util.DispatcherFilter</filter-class>
- </filter>
- <filter-mapping>
- <filter-name>dispatcherFilter</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping>
- <!--End -->
- <!-- 配置监听 由spring来管理 -->
- <context-param>
- <param-name>contextConfigLocation</param-name>
- <param-value>/WEB-INF/xml/hidp/applicationContext*.xml,/WEB-INF/xml/wms/*/applicationContext*.xml,/WEB-INF/xml/wms/ws/interface*.xml</param-value><!--,/WEB-INF/xml/wms/*/interface*.xml-->
- </context-param>
- <filter-mapping>
- <filter-name>struts2</filter-name>
- <url-pattern>/homePageToLeft/*</url-pattern><url-pattern>/homePageToMainTop/*</url-pattern><url-pattern>/homePageToMainTop!setDesktopSetup</url-pattern><url-pattern>/homePageToRight/*</url-pattern><url-pattern>/homePageToRight!toMenuList</url-pattern><url-pattern>/exitAction</url-pattern><url-pattern>*.jsp</url-pattern> <url-pattern>/action/*</url-pattern><url-pattern>/struts/*</url-pattern><url-pattern>/innersmleft</url-pattern><url-pattern>/innersmmain</url-pattern><url-pattern>/phsysman/*</url-pattern><url-pattern>/log/*</url-pattern><url-pattern>/mail/*</url-pattern><url-pattern>/system/*</url-pattern><url-pattern>/tobacco_wms/*</url-pattern><url-pattern>/privilege/*</url-pattern><url-pattern>/address/*</url-pattern><url-pattern>/message/*</url-pattern><url-pattern>/organization/*</url-pattern><url-pattern>/wfmgr/*</url-pattern>
- </filter-mapping>
- <listener>
- <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
- </listener>
- <!-- fckeditor上传文件 -->
- <servlet>
- <servlet-name>Connector</servlet-name>
- <servlet-class>com.huike.hidp.util.servlet.ConnectorServlet</servlet-class>
- <load-on-startup>1</load-on-startup>
- </servlet>
- <servlet-mapping>
- <servlet-name>Connector</servlet-name>
- <url-pattern>/fckeditor/editor/filemanager/connectors/*</url-pattern>
- </servlet-mapping>
- <!--End -->
- <filter>
- <filter-name>SetCharacterEncoding</filter-name>
- <filter-class>com.huike.wms.util.SetCharacterEncodingFilter</filter-class>
- <init-param>
- <param-name>encoding</param-name>
- <param-value>UTF-8</param-value>
- </init-param>
- <init-param>
- <param-name>enable</param-name>
- <param-value>true</param-value>
- </init-param>
- </filter>
- <servlet>
- <servlet-name>CXFServlet</servlet-name>
- <servlet-class>
- org.apache.cxf.transport.servlet.CXFServlet
- </servlet-class>
- <load-on-startup>1</load-on-startup>
- </servlet>
- <servlet-mapping>
- <servlet-name>CXFServlet</servlet-name>
- <url-pattern>/services/*</url-pattern>
- </servlet-mapping>
- <servlet>
- <servlet-name>EngineServlet</servlet-name>
- <servlet-class>org.eclipse.birt.report.servlet.BirtEngineServlet</servlet-class>
- </servlet>
- <servlet-mapping>
- <servlet-name>EngineServlet</servlet-name>
- <url-pattern>/preview</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>EngineServlet</servlet-name>
- <url-pattern>/download</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>EngineServlet</servlet-name>
- <url-pattern>/parameter</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>EngineServlet</servlet-name>
- <url-pattern>/document</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>EngineServlet</servlet-name>
- <url-pattern>/output</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>EngineServlet</servlet-name>
- <url-pattern>/extract</url-pattern>
- </servlet-mapping>
- <servlet>
- <servlet-name>entryBillReport</servlet-name>
- <servlet-class>com.huike.wms.report.entryservlet.EntrySeatReport</servlet-class>
- </servlet>
- <servlet-mapping>
- <servlet-name>entryBillReport</servlet-name>
- <url-pattern>/report/entryBillReport</url-pattern>
- </servlet-mapping>
- <servlet>
- <servlet-name>deliveryBillReport</servlet-name>
- <servlet-class>com.huike.wms.report.deliveryservlet.DeliverySeatReport</servlet-class>
- </servlet>
- <servlet-mapping>
- <servlet-name>deliveryBillReport</servlet-name>
- <url-pattern>/report/deliveryBillReport</url-pattern>
- </servlet-mapping>
- <servlet>
- <servlet-name>abnorReport</servlet-name>
- <servlet-class>com.huike.wms.report.abnorservlet.AbnorReport</servlet-class>
- </servlet>
- <servlet-mapping>
- <servlet-name>abnorReport</servlet-name>
- <url-pattern>/report/abnorReport</url-pattern>
- </servlet-mapping>
- <servlet>
- <servlet-name>abnorByTaskCodeReport</servlet-name>
- <servlet-class>com.huike.wms.report.abnorservlet.AbnorByTaskCodeReport</servlet-class>
- </servlet>
- <servlet-mapping>
- <servlet-name>abnorByTaskCodeReport</servlet-name>
- <url-pattern>/report/abnorByTaskCodeReport</url-pattern>
- </servlet-mapping>
- <servlet>
- <servlet-name>moveBillReport</servlet-name>
- <servlet-class>com.huike.wms.report.movebillservlet.MoveBillReport</servlet-class>
- </servlet>
- <servlet-mapping>
- <servlet-name>moveBillReport</servlet-name>
- <url-pattern>/report/moveBillReport</url-pattern>
- </servlet-mapping>
- <servlet>
- <servlet-name>productReport</servlet-name>
- <servlet-class>com.huike.wms.report.productservlet.ProductReport</servlet-class>
- </servlet>
- <servlet-mapping>
- <servlet-name>productReport</servlet-name>
- <url-pattern>/report/productReport</url-pattern>
- </servlet-mapping>
- <servlet>
- <servlet-name>productDailyReport</servlet-name>
- <servlet-class>com.huike.wms.report.productservlet.ProductDailyReport</servlet-class>
- </servlet>
- <servlet-mapping>
- <servlet-name>productDailyReport</servlet-name>
- <url-pattern>/report/productDailyReport</url-pattern>
- </servlet-mapping>
- <servlet>
- <servlet-name>clearStockReport</servlet-name>
- <servlet-class>com.huike.wms.report.sortservlet.ClearStockReport</servlet-class>
- </servlet>
- <servlet-mapping>
- <servlet-name>clearStockReport</servlet-name>
- <url-pattern>/report/clearStockReport</url-pattern>
- </servlet-mapping>
- <servlet>
- <servlet-name>sortVwDeliveryReport</servlet-name>
- <servlet-class>com.huike.wms.report.sortservlet.SortVwDeliveryReport</servlet-class>
- </servlet>
- <servlet-mapping>
- <servlet-name>sortVwDeliveryReport</servlet-name>
- <url-pattern>/report/sortVwDeliveryReport</url-pattern>
- </servlet-mapping>
- <servlet>
- <servlet-name>productQtyReport</servlet-name>
- <servlet-class>com.huike.wms.report.productservlet.ProductQtyReport</servlet-class>
- </servlet>
- <servlet-mapping>
- <servlet-name>productQtyReport</servlet-name>
- <url-pattern>/report/productQtyReport</url-pattern>
- </servlet-mapping>
- <servlet>
- <servlet-name>preStockReport</servlet-name>
- <servlet-class>com.huike.wms.report.prestockservlet.PreStockReport</servlet-class>
- </servlet>
- <servlet-mapping>
- <servlet-name>preStockReport</servlet-name>
- <url-pattern>/report/preStockReport</url-pattern>
- </servlet-mapping>
- </web-app>