Browse Source

'销售订单同步关闭'

HUJIANGUO 3 years ago
parent
commit
5a0ecfbdd6
20 changed files with 1884 additions and 20 deletions
  1. 83 2
      src/main/java/com/steerinfo/dil/controller/WSFaceController.java
  2. 4 0
      src/main/java/com/steerinfo/dil/mapper/AmsSaleOrderMapper.java
  3. 3 0
      src/main/java/com/steerinfo/dil/mapper/UtilsMapper.java
  4. 38 4
      src/main/java/com/steerinfo/dil/service/impl/AmsSaleOrderServiceImpl.java
  5. 64 0
      src/main/java/com/steerinfo/dil/util/MapToXmlUtil.java
  6. 26 0
      src/main/java/com/steerinfo/dil/util/Test.java
  7. 12 12
      src/main/java/com/steerinfo/dil/wsdl/TestDG.java
  8. 1 1
      src/main/java/com/steerinfo/dil/wsdl/WSJJBoomFacadeSoapBindingStub.java
  9. 1 1
      src/main/java/com/steerinfo/dil/wsdl/WSUpDaxingMeteringSystemFacadeSoapBindingStub.java
  10. 583 0
      src/main/java/com/steerinfo/dil/wsdlTest/DeleteDeleteWSFaceFacadeSoapBindingStub.java
  11. 111 0
      src/main/java/com/steerinfo/dil/wsdlTest/DeleteServiceInfo.java
  12. 498 0
      src/main/java/com/steerinfo/dil/wsdlTest/DeleteWSFaceFacade.wsdl
  13. 19 0
      src/main/java/com/steerinfo/dil/wsdlTest/DeleteWSFaceFacadeSrvProxy.java
  14. 16 0
      src/main/java/com/steerinfo/dil/wsdlTest/DeleteWSFaceFacadeSrvProxyService.java
  15. 142 0
      src/main/java/com/steerinfo/dil/wsdlTest/DeleteWSFaceFacadeSrvProxyServiceLocator.java
  16. 87 0
      src/main/java/com/steerinfo/dil/wsdlTest/DeleteWSInvokeException.java
  17. 47 0
      src/main/java/com/steerinfo/dil/wsdlTest/LoginTestUtil.java
  18. 100 0
      src/main/java/com/steerinfo/dil/wsdlTest/TestFaceFacade.java
  19. 26 0
      src/main/resources/com/steerinfo/dil/mapper/AmsSaleOrderMapper.xml
  20. 23 0
      src/main/resources/com/steerinfo/dil/mapper/UtilsMapper.xml

+ 83 - 2
src/main/java/com/steerinfo/dil/controller/WSFaceController.java

@@ -6,14 +6,21 @@ import com.alibaba.fastjson.JSONObject;
 import com.steerinfo.dil.service.impl.AmsNotUploadedEasServiceImpl;
 import com.steerinfo.dil.util.BaseRESTfulController;
 import com.steerinfo.dil.util.SaleUtil;
+import com.steerinfo.dil.wsdl.LoginUtil;
+import com.steerinfo.dil.wsdl.WSContext;
+//import com.steerinfo.dil.wsdlTest.DeleteServiceInfo;
+//import com.steerinfo.dil.wsdlTest.DeleteWSFaceFacadeSrvProxyServiceLocator;
 import com.steerinfo.dil.wsdl.ServiceInfo;
 import com.steerinfo.dil.wsdl.WSFaceFacadeSrvProxyServiceLocator;
+import com.steerinfo.dil.wsdlTest.LoginTestUtil;
 import io.swagger.annotations.ApiModelProperty;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
+
+import java.util.HashMap;
 import java.util.Map;
 
 /**
@@ -35,7 +42,7 @@ public class WSFaceController extends BaseRESTfulController {
     @PostMapping("/pushBmsSettlement")
     @ApiModelProperty(value = "结算金蝶访问接口")
     public String WSFaceWay(@RequestBody Map<String,Object> map) {
-        com.steerinfo.dil.wsdl.ServiceInfo service = new ServiceInfo("user", "kduser", "eas", "D001", "L2", 1);
+        ServiceInfo service = new ServiceInfo("user", "kduser", "eas", "D001", "L2", 1);
         WSFaceFacadeSrvProxyServiceLocator locator = new WSFaceFacadeSrvProxyServiceLocator();
         service.setServername("172.16.62.243" , "8888");
         String output = null;
@@ -54,12 +61,54 @@ public class WSFaceController extends BaseRESTfulController {
 
     @PostMapping("/pushSaleOrderToEas")
     @ApiModelProperty(value = "销售订单推送数据接口")
-    public String pushSaleOrderToEas(@RequestBody Map<String,Object> map) {
+    public Map<String,Object> pushSaleOrderToEas(@RequestBody Map<String,Object> map) {
 //        Map<String, Object> totalMap = saleUtil.getTotalMap();
 //        totalMap.put("input",map);
+        //正式服务器
         com.steerinfo.dil.wsdl.ServiceInfo service = new ServiceInfo("user", "dgjt@kingdee", "eas", "FDDGEAS85", "L2", 1);
         WSFaceFacadeSrvProxyServiceLocator locator = new WSFaceFacadeSrvProxyServiceLocator();
+        // 测试服务器
+//        DeleteServiceInfo service = new DeleteServiceInfo("user", "dgjt@kingdee", "eas", "A004", "L2", 1);
+//        DeleteWSFaceFacadeSrvProxyServiceLocator locator = new DeleteWSFaceFacadeSrvProxyServiceLocator();
+        //正式服务器
+        service.setServername("172.16.33.111" , "8888");
+//        // 测试服务器
+//        service.setServername("172.16.62.243" , "8888");
+
+        WSContext wsContext = LoginUtil.doEASLogin(service);
+        String sessionId = wsContext.getSessionId();
+        String output = null;
+        Map<String , Object> resultMap = new HashMap<>();
+        try {
+            // 这边是map,将map封装后转为json
+            String json = JSONUtils.toJSONString(map);
+            String res = locator.getWSFaceFacade().invokeJson(json);
+            JSONObject request = JSON.parseObject(res);
+            String requestException = request.getString("exception");
+            output = request.getString("output");
+            System.out.println(output);
+            resultMap.put("res",res);
+            resultMap.put("output",output);
+            resultMap.put("requestException",requestException);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        return resultMap;
+    }
+
+    @PostMapping("/pushWmsMessagesToEas")
+    @ApiModelProperty(value = "仓储推送数据接口")
+    public String pushWmsMessagesToEas(@RequestBody Map<String,Object> map) {
+//        Map<String, Object> totalMap = saleUtil.getTotalMap();
+//        totalMap.put("input",map);
+        // 正式服务器
+        ServiceInfo service = new ServiceInfo("user", "dgjt@kingdee", "eas", "FDDGEAS85", "L2", 1);
+        WSFaceFacadeSrvProxyServiceLocator locator = new WSFaceFacadeSrvProxyServiceLocator();
         service.setServername("172.16.33.111" , "8888");
+//         测试服务器
+//        DeleteServiceInfo service = new DeleteServiceInfo("user", "dgjt@kingdee", "eas", "FDDGEAS85", "L2", 1);
+//        DeleteWSFaceFacadeSrvProxyServiceLocator locator = new DeleteWSFaceFacadeSrvProxyServiceLocator();
+//        service.setServername("172.16.33.111" , "8888");
         String output = null;
         try {
             // 这边是map,将map封装后转为json
@@ -74,6 +123,38 @@ public class WSFaceController extends BaseRESTfulController {
         return output;
     }
 
+    @PostMapping("/deleteSaleOrderToEas")
+    @ApiModelProperty(value = "删除销售订单同步金蝶")
+    public Map<String, Object> deleteSaleOrderToEas(@RequestBody Map<String,Object> map) {
+        // 正式服务器
+        com.steerinfo.dil.wsdl.ServiceInfo service = new ServiceInfo("user", "dgjt@kingdee", "eas", "FDDGEAS85", "L2", 0);
+        WSFaceFacadeSrvProxyServiceLocator locator = new WSFaceFacadeSrvProxyServiceLocator();
+        service.setServername("172.16.33.111" , "8888");
+        // 测试服务器
+//        DeleteServiceInfo service = new DeleteServiceInfo("user", "dgjt@kingdee", "eas", "A004", "L2", 0);
+//        DeleteWSFaceFacadeSrvProxyServiceLocator locator = new DeleteWSFaceFacadeSrvProxyServiceLocator();
+//        service.setServername("172.16.62.243" , "8888");
+        WSContext wsContext = LoginUtil.doEASLogin(service);
+        String sessionId = wsContext.getSessionId();
+        Map<String , Object> resultMap = new HashMap<>();
+        String output = null;
+        try {
+            // 这边是map,将map封装后转为json
+            String json = JSONUtils.toJSONString(map);
+            String res = locator.getWSFaceFacade().invokeJson(json);
+            JSONObject request = JSON.parseObject(res);
+            String requestException = request.getString("exception");
+            output = request.getString("output");
+            System.out.println(output);
+            resultMap.put("res",res);
+            resultMap.put("output",output);
+            resultMap.put("requestException",requestException);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        return resultMap;
+    }
+
     /**
      * 生成报文传输数据接口 请勿乱调用测试
      * @Author TXF

+ 4 - 0
src/main/java/com/steerinfo/dil/mapper/AmsSaleOrderMapper.java

@@ -26,4 +26,8 @@ public interface AmsSaleOrderMapper extends IBaseMapper<AmsSaleOrder, BigDecimal
 
     // 查询发货单位
     BigDecimal getShipperId(String shipperUnit);
+    // 关闭未进厂的订单
+    int closeOrderNotIn(BigDecimal saleOrderId);
+    // 得到仓库集合
+    List<Map<String,Object>> getWareHouse(BigDecimal saleOrderId);
 }

+ 3 - 0
src/main/java/com/steerinfo/dil/mapper/UtilsMapper.java

@@ -78,4 +78,7 @@ public interface UtilsMapper {
 
     //查询零星是否多拼或没有净重的物资
     Integer getNextMaterialId(BigDecimal orderId);
+
+    // 入库数据
+    List<Map<String,Object>> getInboundData();
 }

+ 38 - 4
src/main/java/com/steerinfo/dil/service/impl/AmsSaleOrderServiceImpl.java

@@ -4,14 +4,13 @@ import com.steerinfo.dil.mapper.AmsSaleMaterialMapper;
 import com.steerinfo.dil.mapper.AmsSaleOrderMapper;
 import com.steerinfo.dil.mapper.AmsSaleTrucknoMaterialMapper;
 import com.steerinfo.dil.mapper.RmsConsigneeMapper;
-import com.steerinfo.dil.model.AmsSaleMaterial;
-import com.steerinfo.dil.model.AmsSaleOrder;
-import com.steerinfo.dil.model.AmsSaleTrucknoMaterial;
-import com.steerinfo.dil.model.RmsConsignee;
+import com.steerinfo.dil.model.*;
 import com.steerinfo.dil.service.IAmsSaleOrderService;
 import com.steerinfo.dil.util.DataChange;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Isolation;
+import org.springframework.transaction.annotation.Propagation;
 import org.springframework.transaction.annotation.Transactional;
 
 import java.math.BigDecimal;
@@ -53,6 +52,7 @@ public class AmsSaleOrderServiceImpl implements IAmsSaleOrderService {
      * @return
      */
     @Override
+    @Transactional
     public Map<String, Object> getSaleOrder(BigDecimal saleOrderId) {
         List<Map<String,Object>> entries = amsSaleOrderMapper.getMaterialMessages(saleOrderId);
         Map<String,Object> head = amsSaleOrderMapper.getSaleOrderMessage(saleOrderId);
@@ -105,6 +105,40 @@ public class AmsSaleOrderServiceImpl implements IAmsSaleOrderService {
         // 判断是删除还是非删除
         String closeStatus = (String) mapVal.get("closeStatus");
         List<AmsSaleOrder> amsSaleOrders = amsSaleOrderMapper.selectByParameters(map);
+        // 关闭分录
+        Object closeEntryId = mapVal.get("closeEntryId");
+        // 关闭原因
+        Object reason = mapVal.get("reason");
+        // 是否整单
+        Object wholeOrder = mapVal.get("wholeOrder");
+        // 关闭副产品整个订单
+        if (closeStatus.equals("-1") && "1".equals(wholeOrder)) {
+            AmsSaleOrder amsSaleOrder = amsSaleOrders.get(0);
+            amsSaleOrder.setDeleted(new BigDecimal(2));
+            if (reason != null) {
+                amsSaleOrder.setInsertUpdateRemark(reason.toString());
+            }
+            result += amsSaleOrderMapper.updateByPrimaryKeySelective(amsSaleOrder);
+            List<Map<String, Object>> warehouseList = amsSaleOrderMapper.getWareHouse(amsSaleOrder.getSaleOrderId());
+            if (warehouseList != null && warehouseList.size() != 0) {
+                String warehouse = (String) warehouseList.get(0).get("warehouse");
+                if (warehouse != null && "副产品库".equals(warehouse)) {
+                    result += amsSaleOrderMapper.closeOrderNotIn(amsSaleOrder.getSaleOrderId());
+                }
+            }
+        }
+        // 关闭单个分录订单
+        if (closeStatus.equals("-1") && wholeOrder.equals("0")) {
+            if (closeEntryId != null) {
+                Map<String, Object> easMap = new HashMap<>();
+                easMap.put("easPrimaryId", closeEntryId);
+                List<AmsSaleMaterial> amsSaleMaterials = amsSaleMaterialMapper.selectByParameters(easMap);
+                if (amsSaleMaterials != null && amsSaleMaterials.size() != 0) {
+                    AmsSaleMaterial amsSaleMaterial = amsSaleMaterials.get(0);
+                    result += amsSaleMaterialMapper.updateByPrimaryKeySelective(amsSaleMaterial);
+                }
+            }
+        }
         if (closeStatus.equals("0")) {
             AmsSaleOrder amsSaleOrder = amsSaleOrders.get(0);
             amsSaleOrder.setDeleted(new BigDecimal(1));

+ 64 - 0
src/main/java/com/steerinfo/dil/util/MapToXmlUtil.java

@@ -0,0 +1,64 @@
+package com.steerinfo.dil.util;
+
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+/**
+ * @Description:
+ * @Author:HuJianGuo
+ * @GreateTime:2022/4/27 14:35
+ * @Version:V2.0
+ */
+public class MapToXmlUtil {
+
+    /**
+     * @Description:TODO(循环遍历map节点和value,拼接成xml)
+     * @param: Map<?, ?> map
+     * @param: StringBuffer
+     * @return:
+     * @auther: HuJianGuo
+     * @date: 2022/4/27 14:35
+     * @throws
+     *
+     **/
+    public static void mapToXML(Map<?, ?> map, StringBuffer sb) {
+        Set<?> set = map.keySet();
+        for (Iterator<?> it = set.iterator(); it.hasNext();) {
+            String key = (String) it.next();
+            Object value = map.get(key);
+            if (value instanceof Map) {
+                sb.append("<" + key + ">\n");
+                mapToXML((Map<?, ?>) value, sb);
+                sb.append("</" + key + ">\n");
+            } else if (value instanceof List) {
+                List<?> list = (List<?>) map.get(key);
+                for (int i = 0; i < list.size(); i++) {
+                    sb.append("<" + key + ">\n");
+                    Map<?, ?> hm = (Map<?, ?>) list.get(i);
+                    mapToXML(hm, sb);
+                    sb.append("</" + key + ">\n");
+                }
+            } else {
+                sb.append("<" + key + ">" + value + "</" + key + ">\n");
+            }
+        }
+    }
+
+    public static String getXmlByMap(Map<?, ?> headMap,Map<?, ?> bodyMap) {
+        StringBuffer sb = new StringBuffer();
+        sb.append("<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n");
+        sb.append("<table>\n");
+        sb.append("<rowCount>1</rowCount>\n");
+        sb.append("<headCount>17</headCount>\n");
+        sb.append("<head>\n");
+        mapToXML(headMap, sb);
+        sb.append("</head>\n");
+        sb.append("<body>\n");
+        mapToXML(bodyMap, sb);
+        sb.append("</body>\n");
+        sb.append("</table>");
+        return sb.toString();
+    }
+}

+ 26 - 0
src/main/java/com/steerinfo/dil/util/Test.java

@@ -0,0 +1,26 @@
+package com.steerinfo.dil.util;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * @Description:
+ * @Author:HuJianGuo
+ * @GreateTime:2022/4/27 15:01
+ * @Version:V2.0
+ */
+public class Test {
+
+    public static void main(String[] args) {
+        Map<String,Object> headMap = new HashMap<>();
+        headMap.put("h1","车号");
+        headMap.put("h2","物资名称");
+        Map<String,Object> bodyMap = new HashMap<>();
+        Map<String,Object> r1 = new HashMap<>();
+        r1.put("r1c1","川S99999");
+        r1.put("r1c2","三级螺纹钢定尺12米");
+        bodyMap.put("r1",r1);
+        String result = MapToXmlUtil.getXmlByMap(headMap,bodyMap);
+        System.out.println(result);
+    }
+}

+ 12 - 12
src/main/java/com/steerinfo/dil/wsdl/TestDG.java

@@ -14,13 +14,13 @@ public class TestDG {
 //        String dcName	//注册的数据中心名称
 //        String language	//登录的语言
 //        Int32 dbType	//数据类型,0:MSSQL,1:ORACLE
-        //ServiceInfo service = new ServiceInfo("user", "lth3690", "eas", "A005", "L2", 1);
-        //ServiceInfo service = new ServiceInfo("01514","321","eas","EAS1101","l2",1);
-        //ServiceInfo service = new ServiceInfo("user", "kduser", "eas", "CSTO_UAT", "L2", 0);
-//        ServiceInfo service = new ServiceInfo("user", "dgjt@kingdee", "eas", "FDDGEAS85", "L2", 1);
-//        ServiceInfo service = new ServiceInfo("user", "lth3690", "eas", "A001", "L2", 1);
-        //ServiceInfo service = new ServiceInfo("user", "user2019", "eas", "EASTEST", "L2", 1);
-//        ServiceInfo service = new ServiceInfo("user", "kduser", "eas", "D001", "L2", 1);
+        //DeleteServiceInfo service = new DeleteServiceInfo("user", "lth3690", "eas", "A005", "L2", 1);
+        //DeleteServiceInfo service = new DeleteServiceInfo("01514","321","eas","EAS1101","l2",1);
+        //DeleteServiceInfo service = new DeleteServiceInfo("user", "kduser", "eas", "CSTO_UAT", "L2", 0);
+//        DeleteServiceInfo service = new DeleteServiceInfo("user", "dgjt@kingdee", "eas", "FDDGEAS85", "L2", 1);
+//        DeleteServiceInfo service = new DeleteServiceInfo("user", "lth3690", "eas", "A001", "L2", 1);
+        //DeleteServiceInfo service = new DeleteServiceInfo("user", "user2019", "eas", "EASTEST", "L2", 1);
+//        DeleteServiceInfo service = new DeleteServiceInfo("user", "kduser", "eas", "D001", "L2", 1);
         //service.setServername("172.16.62.243","56898");//地址和端口号
         //service.setServername("10.99.0.2","56898");//地址和端口号
 //        service.setServername("10.192.200.28","56898");//地址和端口号
@@ -32,13 +32,13 @@ public class TestDG {
 //        service.setServername("172.16.62.243" , "56898");
 //        service.setServername("172.16.33.111" , "8900");
 //        service.setServername("172.16.62.243" , "56898");
-//        ServiceInfo service = new ServiceInfo("黄英", "123", "eas", "NT11", "L2", 1);
+//        DeleteServiceInfo service = new DeleteServiceInfo("黄英", "123", "eas", "NT11", "L2", 1);
 //        service.setServername("172.16.200.57" , "6888");
 
         ServiceInfo service = new ServiceInfo("user", "dgjt@kingdee", "eas", "FDDGEAS85", "L2", 1);//正式账套
-//        ServiceInfo service = new ServiceInfo("user", "dgjt@kingdee", "eas", "A004", "L2", 1);//测试服务器正式账套
-//        ServiceInfo service = new ServiceInfo("user", "dgjt@kingdee", "eas", "zseas85", "L2", 1);//本地远程正式
-//        ServiceInfo service = new ServiceInfo("user", "kduser", "eas", "D001", "L2", 1);//远程测试
+//        DeleteServiceInfo service = new DeleteServiceInfo("user", "dgjt@kingdee", "eas", "A004", "L2", 1);//测试服务器正式账套
+//        DeleteServiceInfo service = new DeleteServiceInfo("user", "dgjt@kingdee", "eas", "zseas85", "L2", 1);//本地远程正式
+//        DeleteServiceInfo service = new DeleteServiceInfo("user", "kduser", "eas", "D001", "L2", 1);//远程测试
 //        service.setServername("172.16.62.243" , "56898");//远程开发机bos地址
         service.setServername("172.16.33.243" , "8888");//正式服务器
 //        service.setServername("172.16.62.243" , "8888");//测试服务器
@@ -57,7 +57,7 @@ public class TestDG {
 
         try {
             String result = null;
-//            WSFaceFacadeSrvProxyServiceLocator locator = new WSFaceFacadeSrvProxyServiceLocator();
+//            DeleteWSFaceFacadeSrvProxyServiceLocator locator = new DeleteWSFaceFacadeSrvProxyServiceLocator();
             WSFaceFacadeSrvProxyServiceLocator locator = new WSFaceFacadeSrvProxyServiceLocator();
             String json ="{\n" +
                     "      \"input\": {\n" +

+ 1 - 1
src/main/java/com/steerinfo/dil/wsdl/WSJJBoomFacadeSoapBindingStub.java

@@ -37,7 +37,7 @@ public class WSJJBoomFacadeSoapBindingStub extends org.apache.axis.client.Stub i
         oper.addFault(new org.apache.axis.description.FaultDesc(
                       new javax.xml.namespace.QName("http://172.16.62.243:8888/ormrpc/services/WSJJBoomFacade", "fault"),
                       "WSInvokeException",
-                      new javax.xml.namespace.QName("urn:client.jjboomfacade", "WSInvokeException"), 
+                      new javax.xml.namespace.QName("urn:client.jjboomfacade", "WSInvokeException"),
                       true
                      ));
         _operations[0] = oper;

+ 1 - 1
src/main/java/com/steerinfo/dil/wsdl/WSUpDaxingMeteringSystemFacadeSoapBindingStub.java

@@ -35,7 +35,7 @@ public class WSUpDaxingMeteringSystemFacadeSoapBindingStub extends org.apache.ax
         oper.addFault(new org.apache.axis.description.FaultDesc(
                       new javax.xml.namespace.QName("http://172.16.33.111:8888/ormrpc/services/WSUpDaxingMeteringSystemFacade", "fault"),
                       "WSInvokeException",
-                      new javax.xml.namespace.QName("urn:client.updaxingmeteringsystemfacade", "WSInvokeException"), 
+                      new javax.xml.namespace.QName("urn:client.updaxingmeteringsystemfacade", "WSInvokeException"),
                       true
                      ));
         _operations[0] = oper;

+ 583 - 0
src/main/java/com/steerinfo/dil/wsdlTest/DeleteDeleteWSFaceFacadeSoapBindingStub.java

@@ -0,0 +1,583 @@
+/**
+ * DeleteDeleteWSFaceFacadeSoapBindingStub.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.steerinfo.dil.wsdlTest;
+
+public class DeleteDeleteWSFaceFacadeSoapBindingStub extends org.apache.axis.client.Stub implements DeleteWSFaceFacadeSrvProxy {
+    private java.util.Vector cachedSerClasses = new java.util.Vector();
+    private java.util.Vector cachedSerQNames = new java.util.Vector();
+    private java.util.Vector cachedSerFactories = new java.util.Vector();
+    private java.util.Vector cachedDeserFactories = new java.util.Vector();
+
+    static org.apache.axis.description.OperationDesc [] _operations;
+
+    static {
+        _operations = new org.apache.axis.description.OperationDesc[8];
+        _initOperationDesc1();
+    }
+
+    private static void _initOperationDesc1(){
+        org.apache.axis.description.OperationDesc oper;
+        org.apache.axis.description.ParameterDesc param;
+        oper = new org.apache.axis.description.OperationDesc();
+        oper.setName("writeFileJson");
+        param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "request"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
+        oper.addParameter(param);
+        param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "fileData"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "base64Binary"), byte[].class, false, false);
+        oper.addParameter(param);
+        oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+        oper.setReturnClass(String.class);
+        oper.setReturnQName(new javax.xml.namespace.QName("", "writeFileJsonReturn"));
+        oper.setStyle(org.apache.axis.constants.Style.RPC);
+        oper.setUse(org.apache.axis.constants.Use.ENCODED);
+        oper.addFault(new org.apache.axis.description.FaultDesc(
+                      new javax.xml.namespace.QName("http://172.16.62.243:8888/ormrpc/services/WSFaceFacade", "fault"),
+                      "com.steerinfo.dil.wsdlTest.DeleteWSInvokeException",
+                      new javax.xml.namespace.QName("urn:client.facefacade", "DeleteWSInvokeException"),
+                      true
+                     ));
+        _operations[0] = oper;
+
+        oper = new org.apache.axis.description.OperationDesc();
+        oper.setName("thirdXML");
+        param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "strRequest"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
+        oper.addParameter(param);
+        oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+        oper.setReturnClass(String.class);
+        oper.setReturnQName(new javax.xml.namespace.QName("", "thirdXMLReturn"));
+        oper.setStyle(org.apache.axis.constants.Style.RPC);
+        oper.setUse(org.apache.axis.constants.Use.ENCODED);
+        oper.addFault(new org.apache.axis.description.FaultDesc(
+                      new javax.xml.namespace.QName("http://172.16.62.243:8888/ormrpc/services/WSFaceFacade", "fault"),
+                      "com.steerinfo.dil.wsdlTest.DeleteWSInvokeException",
+                      new javax.xml.namespace.QName("urn:client.facefacade", "DeleteWSInvokeException"),
+                      true
+                     ));
+        _operations[1] = oper;
+
+        oper = new org.apache.axis.description.OperationDesc();
+        oper.setName("invokeXML");
+        param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "strRequest"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
+        oper.addParameter(param);
+        oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+        oper.setReturnClass(String.class);
+        oper.setReturnQName(new javax.xml.namespace.QName("", "invokeXMLReturn"));
+        oper.setStyle(org.apache.axis.constants.Style.RPC);
+        oper.setUse(org.apache.axis.constants.Use.ENCODED);
+        oper.addFault(new org.apache.axis.description.FaultDesc(
+                      new javax.xml.namespace.QName("http://172.16.62.243:8888/ormrpc/services/WSFaceFacade", "fault"),
+                      "com.steerinfo.dil.wsdlTest.DeleteWSInvokeException",
+                      new javax.xml.namespace.QName("urn:client.facefacade", "DeleteWSInvokeException"),
+                      true
+                     ));
+        _operations[2] = oper;
+
+        oper = new org.apache.axis.description.OperationDesc();
+        oper.setName("invokeJson");
+        param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "strRequest"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
+        oper.addParameter(param);
+        oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+        oper.setReturnClass(String.class);
+        oper.setReturnQName(new javax.xml.namespace.QName("", "invokeJsonReturn"));
+        oper.setStyle(org.apache.axis.constants.Style.RPC);
+        oper.setUse(org.apache.axis.constants.Use.ENCODED);
+        oper.addFault(new org.apache.axis.description.FaultDesc(
+                      new javax.xml.namespace.QName("http://172.16.62.243:8888/ormrpc/services/WSFaceFacade", "fault"),
+                      "com.steerinfo.dil.wsdlTest.DeleteWSInvokeException",
+                      new javax.xml.namespace.QName("urn:client.facefacade", "DeleteWSInvokeException"),
+                      true
+                     ));
+        _operations[3] = oper;
+
+        oper = new org.apache.axis.description.OperationDesc();
+        oper.setName("thirdJson");
+        param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "strRequest"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
+        oper.addParameter(param);
+        oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+        oper.setReturnClass(String.class);
+        oper.setReturnQName(new javax.xml.namespace.QName("", "thirdJsonReturn"));
+        oper.setStyle(org.apache.axis.constants.Style.RPC);
+        oper.setUse(org.apache.axis.constants.Use.ENCODED);
+        oper.addFault(new org.apache.axis.description.FaultDesc(
+                      new javax.xml.namespace.QName("http://172.16.62.243:8888/ormrpc/services/WSFaceFacade", "fault"),
+                      "com.steerinfo.dil.wsdlTest.DeleteWSInvokeException",
+                      new javax.xml.namespace.QName("urn:client.facefacade", "DeleteWSInvokeException"),
+                      true
+                     ));
+        _operations[4] = oper;
+
+        oper = new org.apache.axis.description.OperationDesc();
+        oper.setName("readFileJson");
+        param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "request"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
+        oper.addParameter(param);
+        oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "base64Binary"));
+        oper.setReturnClass(byte[].class);
+        oper.setReturnQName(new javax.xml.namespace.QName("", "readFileJsonReturn"));
+        oper.setStyle(org.apache.axis.constants.Style.RPC);
+        oper.setUse(org.apache.axis.constants.Use.ENCODED);
+        oper.addFault(new org.apache.axis.description.FaultDesc(
+                      new javax.xml.namespace.QName("http://172.16.62.243:8888/ormrpc/services/WSFaceFacade", "fault"),
+                      "com.steerinfo.dil.wsdlTest.DeleteWSInvokeException",
+                      new javax.xml.namespace.QName("urn:client.facefacade", "DeleteWSInvokeException"),
+                      true
+                     ));
+        _operations[5] = oper;
+
+        oper = new org.apache.axis.description.OperationDesc();
+        oper.setName("writeFileXml");
+        param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "request"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
+        oper.addParameter(param);
+        param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "fileData"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "base64Binary"), byte[].class, false, false);
+        oper.addParameter(param);
+        oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+        oper.setReturnClass(String.class);
+        oper.setReturnQName(new javax.xml.namespace.QName("", "writeFileXmlReturn"));
+        oper.setStyle(org.apache.axis.constants.Style.RPC);
+        oper.setUse(org.apache.axis.constants.Use.ENCODED);
+        oper.addFault(new org.apache.axis.description.FaultDesc(
+                      new javax.xml.namespace.QName("http://172.16.62.243:8888/ormrpc/services/WSFaceFacade", "fault"),
+                      "com.steerinfo.dil.wsdlTest.DeleteWSInvokeException",
+                      new javax.xml.namespace.QName("urn:client.facefacade", "DeleteWSInvokeException"),
+                      true
+                     ));
+        _operations[6] = oper;
+
+        oper = new org.apache.axis.description.OperationDesc();
+        oper.setName("readFileXml");
+        param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "request"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
+        oper.addParameter(param);
+        oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "base64Binary"));
+        oper.setReturnClass(byte[].class);
+        oper.setReturnQName(new javax.xml.namespace.QName("", "readFileXmlReturn"));
+        oper.setStyle(org.apache.axis.constants.Style.RPC);
+        oper.setUse(org.apache.axis.constants.Use.ENCODED);
+        oper.addFault(new org.apache.axis.description.FaultDesc(
+                      new javax.xml.namespace.QName("http://172.16.62.243:8888/ormrpc/services/WSFaceFacade", "fault"),
+                      "com.steerinfo.dil.wsdlTest.DeleteWSInvokeException",
+                      new javax.xml.namespace.QName("urn:client.facefacade", "DeleteWSInvokeException"),
+                      true
+                     ));
+        _operations[7] = oper;
+
+    }
+
+    public DeleteDeleteWSFaceFacadeSoapBindingStub() throws org.apache.axis.AxisFault {
+         this(null);
+    }
+
+    public DeleteDeleteWSFaceFacadeSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
+         this(service);
+         super.cachedEndpoint = endpointURL;
+    }
+
+    public DeleteDeleteWSFaceFacadeSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
+        if (service == null) {
+            super.service = new org.apache.axis.client.Service();
+        } else {
+            super.service = service;
+        }
+        ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.1");
+            Class cls;
+            javax.xml.namespace.QName qName;
+            javax.xml.namespace.QName qName2;
+            Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
+            Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
+            Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
+            Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
+            Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
+            Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
+            Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
+            Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
+            Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
+            Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
+            qName = new javax.xml.namespace.QName("urn:client.facefacade", "DeleteWSInvokeException");
+            cachedSerQNames.add(qName);
+            cls = DeleteWSInvokeException.class;
+            cachedSerClasses.add(cls);
+            cachedSerFactories.add(beansf);
+            cachedDeserFactories.add(beandf);
+
+    }
+
+    protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
+        try {
+            org.apache.axis.client.Call _call = super._createCall();
+            if (super.maintainSessionSet) {
+                _call.setMaintainSession(super.maintainSession);
+            }
+            if (super.cachedUsername != null) {
+                _call.setUsername(super.cachedUsername);
+            }
+            if (super.cachedPassword != null) {
+                _call.setPassword(super.cachedPassword);
+            }
+            if (super.cachedEndpoint != null) {
+                _call.setTargetEndpointAddress(super.cachedEndpoint);
+            }
+            if (super.cachedTimeout != null) {
+                _call.setTimeout(super.cachedTimeout);
+            }
+            if (super.cachedPortName != null) {
+                _call.setPortName(super.cachedPortName);
+            }
+            java.util.Enumeration keys = super.cachedProperties.keys();
+            while (keys.hasMoreElements()) {
+                String key = (String) keys.nextElement();
+                _call.setProperty(key, super.cachedProperties.get(key));
+            }
+            // All the type mapping information is registered
+            // when the first call is made.
+            // The type mapping information is actually registered in
+            // the TypeMappingRegistry of the service, which
+            // is the reason why registration is only needed for the first call.
+            synchronized (this) {
+                if (firstCall()) {
+                    // must set encoding style before registering serializers
+                    _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+                    _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
+                    for (int i = 0; i < cachedSerFactories.size(); ++i) {
+                        Class cls = (Class) cachedSerClasses.get(i);
+                        javax.xml.namespace.QName qName =
+                                (javax.xml.namespace.QName) cachedSerQNames.get(i);
+                        Object x = cachedSerFactories.get(i);
+                        if (x instanceof Class) {
+                            Class sf = (Class)
+                                 cachedSerFactories.get(i);
+                            Class df = (Class)
+                                 cachedDeserFactories.get(i);
+                            _call.registerTypeMapping(cls, qName, sf, df, false);
+                        }
+                        else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
+                            org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
+                                 cachedSerFactories.get(i);
+                            org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
+                                 cachedDeserFactories.get(i);
+                            _call.registerTypeMapping(cls, qName, sf, df, false);
+                        }
+                    }
+                }
+            }
+            return _call;
+        }
+        catch (Throwable _t) {
+            throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
+        }
+    }
+
+    public String writeFileJson(String request, byte[] fileData) throws java.rmi.RemoteException, DeleteWSInvokeException {
+        if (super.cachedEndpoint == null) {
+            throw new org.apache.axis.NoEndPointException();
+        }
+        org.apache.axis.client.Call _call = createCall();
+        _call.setOperation(_operations[0]);
+        _call.setUseSOAPAction(true);
+        _call.setSOAPActionURI("");
+        _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+        _call.setOperationName(new javax.xml.namespace.QName("http://webservice.app.face.cd.eas.kingdee.com", "writeFileJson"));
+
+        setRequestHeaders(_call);
+        setAttachments(_call);
+ try {        Object _resp = _call.invoke(new Object[] {request, fileData});
+
+        if (_resp instanceof java.rmi.RemoteException) {
+            throw (java.rmi.RemoteException)_resp;
+        }
+        else {
+            extractAttachments(_call);
+            try {
+                return (String) _resp;
+            } catch (Exception _exception) {
+                return (String) org.apache.axis.utils.JavaUtils.convert(_resp, String.class);
+            }
+        }
+  } catch (org.apache.axis.AxisFault axisFaultException) {
+    if (axisFaultException.detail != null) {
+        if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+              throw (java.rmi.RemoteException) axisFaultException.detail;
+         }
+        if (axisFaultException.detail instanceof DeleteWSInvokeException) {
+              throw (DeleteWSInvokeException) axisFaultException.detail;
+         }
+   }
+  throw axisFaultException;
+}
+    }
+
+    public String thirdXML(String strRequest) throws java.rmi.RemoteException, DeleteWSInvokeException {
+        if (super.cachedEndpoint == null) {
+            throw new org.apache.axis.NoEndPointException();
+        }
+        org.apache.axis.client.Call _call = createCall();
+        _call.setOperation(_operations[1]);
+        _call.setUseSOAPAction(true);
+        _call.setSOAPActionURI("");
+        _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+        _call.setOperationName(new javax.xml.namespace.QName("http://webservice.app.face.cd.eas.kingdee.com", "thirdXML"));
+
+        setRequestHeaders(_call);
+        setAttachments(_call);
+ try {        Object _resp = _call.invoke(new Object[] {strRequest});
+
+        if (_resp instanceof java.rmi.RemoteException) {
+            throw (java.rmi.RemoteException)_resp;
+        }
+        else {
+            extractAttachments(_call);
+            try {
+                return (String) _resp;
+            } catch (Exception _exception) {
+                return (String) org.apache.axis.utils.JavaUtils.convert(_resp, String.class);
+            }
+        }
+  } catch (org.apache.axis.AxisFault axisFaultException) {
+    if (axisFaultException.detail != null) {
+        if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+              throw (java.rmi.RemoteException) axisFaultException.detail;
+         }
+        if (axisFaultException.detail instanceof DeleteWSInvokeException) {
+              throw (DeleteWSInvokeException) axisFaultException.detail;
+         }
+   }
+  throw axisFaultException;
+}
+    }
+
+    public String invokeXML(String strRequest) throws java.rmi.RemoteException, DeleteWSInvokeException {
+        if (super.cachedEndpoint == null) {
+            throw new org.apache.axis.NoEndPointException();
+        }
+        org.apache.axis.client.Call _call = createCall();
+        _call.setOperation(_operations[2]);
+        _call.setUseSOAPAction(true);
+        _call.setSOAPActionURI("");
+        _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+        _call.setOperationName(new javax.xml.namespace.QName("http://webservice.app.face.cd.eas.kingdee.com", "invokeXML"));
+
+        setRequestHeaders(_call);
+        setAttachments(_call);
+ try {        Object _resp = _call.invoke(new Object[] {strRequest});
+
+        if (_resp instanceof java.rmi.RemoteException) {
+            throw (java.rmi.RemoteException)_resp;
+        }
+        else {
+            extractAttachments(_call);
+            try {
+                return (String) _resp;
+            } catch (Exception _exception) {
+                return (String) org.apache.axis.utils.JavaUtils.convert(_resp, String.class);
+            }
+        }
+  } catch (org.apache.axis.AxisFault axisFaultException) {
+    if (axisFaultException.detail != null) {
+        if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+              throw (java.rmi.RemoteException) axisFaultException.detail;
+         }
+        if (axisFaultException.detail instanceof DeleteWSInvokeException) {
+              throw (DeleteWSInvokeException) axisFaultException.detail;
+         }
+   }
+  throw axisFaultException;
+}
+    }
+
+    public String invokeJson(String strRequest) throws java.rmi.RemoteException, DeleteWSInvokeException {
+        if (super.cachedEndpoint == null) {
+            throw new org.apache.axis.NoEndPointException();
+        }
+        org.apache.axis.client.Call _call = createCall();
+        _call.setOperation(_operations[3]);
+        _call.setUseSOAPAction(true);
+        _call.setSOAPActionURI("");
+        _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+        _call.setOperationName(new javax.xml.namespace.QName("http://webservice.app.face.cd.eas.kingdee.com", "invokeJson"));
+
+        setRequestHeaders(_call);
+        setAttachments(_call);
+ try {        Object _resp = _call.invoke(new Object[] {strRequest});
+
+        if (_resp instanceof java.rmi.RemoteException) {
+            throw (java.rmi.RemoteException)_resp;
+        }
+        else {
+            extractAttachments(_call);
+            try {
+                return (String) _resp;
+            } catch (Exception _exception) {
+                return (String) org.apache.axis.utils.JavaUtils.convert(_resp, String.class);
+            }
+        }
+  } catch (org.apache.axis.AxisFault axisFaultException) {
+    if (axisFaultException.detail != null) {
+        if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+              throw (java.rmi.RemoteException) axisFaultException.detail;
+         }
+        if (axisFaultException.detail instanceof DeleteWSInvokeException) {
+              throw (DeleteWSInvokeException) axisFaultException.detail;
+         }
+   }
+  throw axisFaultException;
+}
+    }
+
+    public String thirdJson(String strRequest) throws java.rmi.RemoteException, DeleteWSInvokeException {
+        if (super.cachedEndpoint == null) {
+            throw new org.apache.axis.NoEndPointException();
+        }
+        org.apache.axis.client.Call _call = createCall();
+        _call.setOperation(_operations[4]);
+        _call.setUseSOAPAction(true);
+        _call.setSOAPActionURI("");
+        _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+        _call.setOperationName(new javax.xml.namespace.QName("http://webservice.app.face.cd.eas.kingdee.com", "thirdJson"));
+
+        setRequestHeaders(_call);
+        setAttachments(_call);
+ try {        Object _resp = _call.invoke(new Object[] {strRequest});
+
+        if (_resp instanceof java.rmi.RemoteException) {
+            throw (java.rmi.RemoteException)_resp;
+        }
+        else {
+            extractAttachments(_call);
+            try {
+                return (String) _resp;
+            } catch (Exception _exception) {
+                return (String) org.apache.axis.utils.JavaUtils.convert(_resp, String.class);
+            }
+        }
+  } catch (org.apache.axis.AxisFault axisFaultException) {
+    if (axisFaultException.detail != null) {
+        if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+              throw (java.rmi.RemoteException) axisFaultException.detail;
+         }
+        if (axisFaultException.detail instanceof DeleteWSInvokeException) {
+              throw (DeleteWSInvokeException) axisFaultException.detail;
+         }
+   }
+  throw axisFaultException;
+}
+    }
+
+    public byte[] readFileJson(String request) throws java.rmi.RemoteException, DeleteWSInvokeException {
+        if (super.cachedEndpoint == null) {
+            throw new org.apache.axis.NoEndPointException();
+        }
+        org.apache.axis.client.Call _call = createCall();
+        _call.setOperation(_operations[5]);
+        _call.setUseSOAPAction(true);
+        _call.setSOAPActionURI("");
+        _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+        _call.setOperationName(new javax.xml.namespace.QName("http://webservice.app.face.cd.eas.kingdee.com", "readFileJson"));
+
+        setRequestHeaders(_call);
+        setAttachments(_call);
+ try {        Object _resp = _call.invoke(new Object[] {request});
+
+        if (_resp instanceof java.rmi.RemoteException) {
+            throw (java.rmi.RemoteException)_resp;
+        }
+        else {
+            extractAttachments(_call);
+            try {
+                return (byte[]) _resp;
+            } catch (Exception _exception) {
+                return (byte[]) org.apache.axis.utils.JavaUtils.convert(_resp, byte[].class);
+            }
+        }
+  } catch (org.apache.axis.AxisFault axisFaultException) {
+    if (axisFaultException.detail != null) {
+        if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+              throw (java.rmi.RemoteException) axisFaultException.detail;
+         }
+        if (axisFaultException.detail instanceof DeleteWSInvokeException) {
+              throw (DeleteWSInvokeException) axisFaultException.detail;
+         }
+   }
+  throw axisFaultException;
+}
+    }
+
+    public String writeFileXml(String request, byte[] fileData) throws java.rmi.RemoteException, DeleteWSInvokeException {
+        if (super.cachedEndpoint == null) {
+            throw new org.apache.axis.NoEndPointException();
+        }
+        org.apache.axis.client.Call _call = createCall();
+        _call.setOperation(_operations[6]);
+        _call.setUseSOAPAction(true);
+        _call.setSOAPActionURI("");
+        _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+        _call.setOperationName(new javax.xml.namespace.QName("http://webservice.app.face.cd.eas.kingdee.com", "writeFileXml"));
+
+        setRequestHeaders(_call);
+        setAttachments(_call);
+ try {        Object _resp = _call.invoke(new Object[] {request, fileData});
+
+        if (_resp instanceof java.rmi.RemoteException) {
+            throw (java.rmi.RemoteException)_resp;
+        }
+        else {
+            extractAttachments(_call);
+            try {
+                return (String) _resp;
+            } catch (Exception _exception) {
+                return (String) org.apache.axis.utils.JavaUtils.convert(_resp, String.class);
+            }
+        }
+  } catch (org.apache.axis.AxisFault axisFaultException) {
+    if (axisFaultException.detail != null) {
+        if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+              throw (java.rmi.RemoteException) axisFaultException.detail;
+         }
+        if (axisFaultException.detail instanceof DeleteWSInvokeException) {
+              throw (DeleteWSInvokeException) axisFaultException.detail;
+         }
+   }
+  throw axisFaultException;
+}
+    }
+
+    public byte[] readFileXml(String request) throws java.rmi.RemoteException, DeleteWSInvokeException {
+        if (super.cachedEndpoint == null) {
+            throw new org.apache.axis.NoEndPointException();
+        }
+        org.apache.axis.client.Call _call = createCall();
+        _call.setOperation(_operations[7]);
+        _call.setUseSOAPAction(true);
+        _call.setSOAPActionURI("");
+        _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+        _call.setOperationName(new javax.xml.namespace.QName("http://webservice.app.face.cd.eas.kingdee.com", "readFileXml"));
+
+        setRequestHeaders(_call);
+        setAttachments(_call);
+ try {        Object _resp = _call.invoke(new Object[] {request});
+
+        if (_resp instanceof java.rmi.RemoteException) {
+            throw (java.rmi.RemoteException)_resp;
+        }
+        else {
+            extractAttachments(_call);
+            try {
+                return (byte[]) _resp;
+            } catch (Exception _exception) {
+                return (byte[]) org.apache.axis.utils.JavaUtils.convert(_resp, byte[].class);
+            }
+        }
+  } catch (org.apache.axis.AxisFault axisFaultException) {
+    if (axisFaultException.detail != null) {
+        if (axisFaultException.detail instanceof java.rmi.RemoteException) {
+              throw (java.rmi.RemoteException) axisFaultException.detail;
+         }
+        if (axisFaultException.detail instanceof DeleteWSInvokeException) {
+              throw (DeleteWSInvokeException) axisFaultException.detail;
+         }
+   }
+  throw axisFaultException;
+}
+    }
+
+}

+ 111 - 0
src/main/java/com/steerinfo/dil/wsdlTest/DeleteServiceInfo.java

@@ -0,0 +1,111 @@
+package com.steerinfo.dil.wsdlTest;
+
+import java.io.Serializable;
+
+/**
+ * Description: weather1
+ * Created by ydx on 2018/8/13 13:39
+ */
+public class DeleteServiceInfo implements Serializable{
+    private String userName;    // 用户名
+    private String password;    // 密码
+    private String slnName;     // eas
+    private String dcName;      // 数据中心
+    private String language;    // 语言
+    private int dbType;         // 数据库类型
+    private String authPattern; // 验证方式
+    private String servername;
+
+    public String getServername () {
+        return servername;
+    }
+
+    public void setServername (String ip, String port) {
+        this.servername = "http://"+ip+":"+port+"/ormrpc/services/";
+    }
+
+    public DeleteServiceInfo(String userName, String password, String slnName, String dcName, String language, int dbType, String authPattern) {
+        this.userName = userName;
+        this.password = password;
+        this.slnName = slnName;
+        this.dcName = dcName;
+        this.language = language;
+        this.dbType = dbType;
+        this.authPattern = authPattern;
+    }
+
+    public DeleteServiceInfo() {
+
+    }
+
+    public DeleteServiceInfo(String userName, String password, String slnName, String dcName, String language, int dbType) {
+
+        this.userName = userName;
+        this.password = password;
+        this.slnName = slnName;
+        this.dcName = dcName;
+        this.language = language;
+        this.dbType = dbType;
+    }
+
+    public String getUserName () {
+
+        return userName;
+    }
+
+    public void setUserName (String userName) {
+        this.userName = userName;
+    }
+
+    public String getPassword () {
+        return password;
+    }
+
+    public void setPassword (String password) {
+        this.password = password;
+    }
+
+    public String getSlnName () {
+        return slnName;
+    }
+
+    public void setSlnName (String slnName) {
+        this.slnName = slnName;
+    }
+
+    public String getDcName () {
+        return dcName;
+    }
+
+    public void setDcName (String dcName) {
+        this.dcName = dcName;
+    }
+
+    public String getLanguage () {
+        return language;
+    }
+
+    public void setLanguage (String language) {
+        this.language = language;
+    }
+
+    public int getDbType () {
+        return dbType;
+    }
+
+    public void setDbType (int dbType) {
+        this.dbType = dbType;
+    }
+
+    public String getAuthPattern () {
+        return authPattern;
+    }
+
+    public void setAuthPattern (String authPattern) {
+        this.authPattern = authPattern;
+    }
+
+    public void setServername (String servername) {
+        this.servername = servername;
+    }
+}

+ 498 - 0
src/main/java/com/steerinfo/dil/wsdlTest/DeleteWSFaceFacade.wsdl

@@ -0,0 +1,498 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions targetNamespace="http://172.16.62.243:8888/ormrpc/services/WSFaceFacade" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://172.16.62.243:8888/ormrpc/services/WSFaceFacade" xmlns:intf="http://172.16.62.243:8888/ormrpc/services/WSFaceFacade" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="urn:client.facefacade" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+<!--WSDL created by Apache Axis version: 1.4
+Built on Apr 22, 2006 (06:55:48 PDT)-->
+ <wsdl:types>
+  <schema targetNamespace="urn:client.facefacade" xmlns="http://www.w3.org/2001/XMLSchema">
+   <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
+   <complexType name="DeleteWSInvokeException">
+    <sequence/>
+   </complexType>
+  </schema>
+ </wsdl:types>
+
+   <wsdl:message name="invokeJsonRequest">
+
+      <wsdl:part name="strRequest" type="xsd:string">
+
+      </wsdl:part>
+
+   </wsdl:message>
+
+   <wsdl:message name="thirdJsonResponse">
+
+      <wsdl:part name="thirdJsonReturn" type="xsd:string">
+
+      </wsdl:part>
+
+   </wsdl:message>
+
+   <wsdl:message name="writeFileXmlRequest">
+
+      <wsdl:part name="request" type="xsd:string">
+
+      </wsdl:part>
+
+      <wsdl:part name="fileData" type="xsd:base64Binary">
+
+      </wsdl:part>
+
+   </wsdl:message>
+
+   <wsdl:message name="readFileXmlRequest">
+
+      <wsdl:part name="request" type="xsd:string">
+
+      </wsdl:part>
+
+   </wsdl:message>
+
+   <wsdl:message name="invokeXMLRequest">
+
+      <wsdl:part name="strRequest" type="xsd:string">
+
+      </wsdl:part>
+
+   </wsdl:message>
+
+   <wsdl:message name="writeFileXmlResponse">
+
+      <wsdl:part name="writeFileXmlReturn" type="xsd:string">
+
+      </wsdl:part>
+
+   </wsdl:message>
+
+   <wsdl:message name="readFileXmlResponse">
+
+      <wsdl:part name="readFileXmlReturn" type="xsd:base64Binary">
+
+      </wsdl:part>
+
+   </wsdl:message>
+
+   <wsdl:message name="readFileJsonResponse">
+
+      <wsdl:part name="readFileJsonReturn" type="xsd:base64Binary">
+
+      </wsdl:part>
+
+   </wsdl:message>
+
+   <wsdl:message name="writeFileJsonResponse">
+
+      <wsdl:part name="writeFileJsonReturn" type="xsd:string">
+
+      </wsdl:part>
+
+   </wsdl:message>
+
+   <wsdl:message name="readFileJsonRequest">
+
+      <wsdl:part name="request" type="xsd:string">
+
+      </wsdl:part>
+
+   </wsdl:message>
+
+   <wsdl:message name="thirdXMLRequest">
+
+      <wsdl:part name="strRequest" type="xsd:string">
+
+      </wsdl:part>
+
+   </wsdl:message>
+
+   <wsdl:message name="invokeXMLResponse">
+
+      <wsdl:part name="invokeXMLReturn" type="xsd:string">
+
+      </wsdl:part>
+
+   </wsdl:message>
+
+   <wsdl:message name="thirdXMLResponse">
+
+      <wsdl:part name="thirdXMLReturn" type="xsd:string">
+
+      </wsdl:part>
+
+   </wsdl:message>
+
+   <wsdl:message name="writeFileJsonRequest">
+
+      <wsdl:part name="request" type="xsd:string">
+
+      </wsdl:part>
+
+      <wsdl:part name="fileData" type="xsd:base64Binary">
+
+      </wsdl:part>
+
+   </wsdl:message>
+
+   <wsdl:message name="WSInvokeException">
+
+      <wsdl:part name="fault" type="tns1:DeleteWSInvokeException">
+
+      </wsdl:part>
+
+   </wsdl:message>
+
+   <wsdl:message name="invokeJsonResponse">
+
+      <wsdl:part name="invokeJsonReturn" type="xsd:string">
+
+      </wsdl:part>
+
+   </wsdl:message>
+
+   <wsdl:message name="thirdJsonRequest">
+
+      <wsdl:part name="strRequest" type="xsd:string">
+
+      </wsdl:part>
+
+   </wsdl:message>
+
+   <wsdl:portType name="DeleteWSFaceFacadeSrvProxy">
+
+      <wsdl:operation name="writeFileJson" parameterOrder="request fileData">
+
+         <wsdl:input message="impl:writeFileJsonRequest" name="writeFileJsonRequest">
+
+       </wsdl:input>
+
+         <wsdl:output message="impl:writeFileJsonResponse" name="writeFileJsonResponse">
+
+       </wsdl:output>
+
+         <wsdl:fault message="impl:WSInvokeException" name="WSInvokeException">
+
+       </wsdl:fault>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="thirdXML" parameterOrder="strRequest">
+
+         <wsdl:input message="impl:thirdXMLRequest" name="thirdXMLRequest">
+
+       </wsdl:input>
+
+         <wsdl:output message="impl:thirdXMLResponse" name="thirdXMLResponse">
+
+       </wsdl:output>
+
+         <wsdl:fault message="impl:WSInvokeException" name="WSInvokeException">
+
+       </wsdl:fault>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="invokeXML" parameterOrder="strRequest">
+
+         <wsdl:input message="impl:invokeXMLRequest" name="invokeXMLRequest">
+
+       </wsdl:input>
+
+         <wsdl:output message="impl:invokeXMLResponse" name="invokeXMLResponse">
+
+       </wsdl:output>
+
+         <wsdl:fault message="impl:WSInvokeException" name="WSInvokeException">
+
+       </wsdl:fault>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="invokeJson" parameterOrder="strRequest">
+
+         <wsdl:input message="impl:invokeJsonRequest" name="invokeJsonRequest">
+
+       </wsdl:input>
+
+         <wsdl:output message="impl:invokeJsonResponse" name="invokeJsonResponse">
+
+       </wsdl:output>
+
+         <wsdl:fault message="impl:WSInvokeException" name="WSInvokeException">
+
+       </wsdl:fault>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="thirdJson" parameterOrder="strRequest">
+
+         <wsdl:input message="impl:thirdJsonRequest" name="thirdJsonRequest">
+
+       </wsdl:input>
+
+         <wsdl:output message="impl:thirdJsonResponse" name="thirdJsonResponse">
+
+       </wsdl:output>
+
+         <wsdl:fault message="impl:WSInvokeException" name="WSInvokeException">
+
+       </wsdl:fault>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="readFileJson" parameterOrder="request">
+
+         <wsdl:input message="impl:readFileJsonRequest" name="readFileJsonRequest">
+
+       </wsdl:input>
+
+         <wsdl:output message="impl:readFileJsonResponse" name="readFileJsonResponse">
+
+       </wsdl:output>
+
+         <wsdl:fault message="impl:WSInvokeException" name="WSInvokeException">
+
+       </wsdl:fault>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="writeFileXml" parameterOrder="request fileData">
+
+         <wsdl:input message="impl:writeFileXmlRequest" name="writeFileXmlRequest">
+
+       </wsdl:input>
+
+         <wsdl:output message="impl:writeFileXmlResponse" name="writeFileXmlResponse">
+
+       </wsdl:output>
+
+         <wsdl:fault message="impl:WSInvokeException" name="WSInvokeException">
+
+       </wsdl:fault>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="readFileXml" parameterOrder="request">
+
+         <wsdl:input message="impl:readFileXmlRequest" name="readFileXmlRequest">
+
+       </wsdl:input>
+
+         <wsdl:output message="impl:readFileXmlResponse" name="readFileXmlResponse">
+
+       </wsdl:output>
+
+         <wsdl:fault message="impl:WSInvokeException" name="WSInvokeException">
+
+       </wsdl:fault>
+
+      </wsdl:operation>
+
+   </wsdl:portType>
+
+   <wsdl:binding name="WSFaceFacadeSoapBinding" type="impl:DeleteWSFaceFacadeSrvProxy">
+
+      <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+
+      <wsdl:operation name="writeFileJson">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="writeFileJsonRequest">
+
+            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservice.app.face.cd.eas.kingdee.com" use="encoded"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="writeFileJsonResponse">
+
+            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://172.16.62.243:8888/ormrpc/services/WSFaceFacade" use="encoded"/>
+
+         </wsdl:output>
+
+         <wsdl:fault name="WSInvokeException">
+
+            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="WSInvokeException" namespace="http://172.16.62.243:8888/ormrpc/services/WSFaceFacade" use="encoded"/>
+
+         </wsdl:fault>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="thirdXML">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="thirdXMLRequest">
+
+            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservice.app.face.cd.eas.kingdee.com" use="encoded"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="thirdXMLResponse">
+
+            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://172.16.62.243:8888/ormrpc/services/WSFaceFacade" use="encoded"/>
+
+         </wsdl:output>
+
+         <wsdl:fault name="WSInvokeException">
+
+            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="WSInvokeException" namespace="http://172.16.62.243:8888/ormrpc/services/WSFaceFacade" use="encoded"/>
+
+         </wsdl:fault>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="invokeXML">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="invokeXMLRequest">
+
+            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservice.app.face.cd.eas.kingdee.com" use="encoded"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="invokeXMLResponse">
+
+            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://172.16.62.243:8888/ormrpc/services/WSFaceFacade" use="encoded"/>
+
+         </wsdl:output>
+
+         <wsdl:fault name="WSInvokeException">
+
+            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="WSInvokeException" namespace="http://172.16.62.243:8888/ormrpc/services/WSFaceFacade" use="encoded"/>
+
+         </wsdl:fault>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="invokeJson">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="invokeJsonRequest">
+
+            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservice.app.face.cd.eas.kingdee.com" use="encoded"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="invokeJsonResponse">
+
+            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://172.16.62.243:8888/ormrpc/services/WSFaceFacade" use="encoded"/>
+
+         </wsdl:output>
+
+         <wsdl:fault name="WSInvokeException">
+
+            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="WSInvokeException" namespace="http://172.16.62.243:8888/ormrpc/services/WSFaceFacade" use="encoded"/>
+
+         </wsdl:fault>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="thirdJson">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="thirdJsonRequest">
+
+            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservice.app.face.cd.eas.kingdee.com" use="encoded"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="thirdJsonResponse">
+
+            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://172.16.62.243:8888/ormrpc/services/WSFaceFacade" use="encoded"/>
+
+         </wsdl:output>
+
+         <wsdl:fault name="WSInvokeException">
+
+            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="WSInvokeException" namespace="http://172.16.62.243:8888/ormrpc/services/WSFaceFacade" use="encoded"/>
+
+         </wsdl:fault>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="readFileJson">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="readFileJsonRequest">
+
+            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservice.app.face.cd.eas.kingdee.com" use="encoded"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="readFileJsonResponse">
+
+            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://172.16.62.243:8888/ormrpc/services/WSFaceFacade" use="encoded"/>
+
+         </wsdl:output>
+
+         <wsdl:fault name="WSInvokeException">
+
+            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="WSInvokeException" namespace="http://172.16.62.243:8888/ormrpc/services/WSFaceFacade" use="encoded"/>
+
+         </wsdl:fault>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="writeFileXml">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="writeFileXmlRequest">
+
+            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservice.app.face.cd.eas.kingdee.com" use="encoded"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="writeFileXmlResponse">
+
+            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://172.16.62.243:8888/ormrpc/services/WSFaceFacade" use="encoded"/>
+
+         </wsdl:output>
+
+         <wsdl:fault name="WSInvokeException">
+
+            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="WSInvokeException" namespace="http://172.16.62.243:8888/ormrpc/services/WSFaceFacade" use="encoded"/>
+
+         </wsdl:fault>
+
+      </wsdl:operation>
+
+      <wsdl:operation name="readFileXml">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="readFileXmlRequest">
+
+            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservice.app.face.cd.eas.kingdee.com" use="encoded"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="readFileXmlResponse">
+
+            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://172.16.62.243:8888/ormrpc/services/WSFaceFacade" use="encoded"/>
+
+         </wsdl:output>
+
+         <wsdl:fault name="WSInvokeException">
+
+            <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="WSInvokeException" namespace="http://172.16.62.243:8888/ormrpc/services/WSFaceFacade" use="encoded"/>
+
+         </wsdl:fault>
+
+      </wsdl:operation>
+
+   </wsdl:binding>
+
+   <wsdl:service name="WSFaceFacadeSrvProxyService">
+
+      <wsdl:port binding="impl:WSFaceFacadeSoapBinding" name="WSFaceFacade">
+
+         <wsdlsoap:address location="http://172.16.62.243:8888/ormrpc/services/WSFaceFacade"/>
+
+      </wsdl:port>
+
+   </wsdl:service>
+
+</wsdl:definitions>

+ 19 - 0
src/main/java/com/steerinfo/dil/wsdlTest/DeleteWSFaceFacadeSrvProxy.java

@@ -0,0 +1,19 @@
+/**
+ * DeleteWSFaceFacadeSrvProxy.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.steerinfo.dil.wsdlTest;
+
+public interface DeleteWSFaceFacadeSrvProxy extends java.rmi.Remote {
+    public String writeFileJson(String request, byte[] fileData) throws java.rmi.RemoteException, DeleteWSInvokeException;
+    public String thirdXML(String strRequest) throws java.rmi.RemoteException, DeleteWSInvokeException;
+    public String invokeXML(String strRequest) throws java.rmi.RemoteException, DeleteWSInvokeException;
+    public String invokeJson(String strRequest) throws java.rmi.RemoteException, DeleteWSInvokeException;
+    public String thirdJson(String strRequest) throws java.rmi.RemoteException, DeleteWSInvokeException;
+    public byte[] readFileJson(String request) throws java.rmi.RemoteException, DeleteWSInvokeException;
+    public String writeFileXml(String request, byte[] fileData) throws java.rmi.RemoteException, DeleteWSInvokeException;
+    public byte[] readFileXml(String request) throws java.rmi.RemoteException, DeleteWSInvokeException;
+}

+ 16 - 0
src/main/java/com/steerinfo/dil/wsdlTest/DeleteWSFaceFacadeSrvProxyService.java

@@ -0,0 +1,16 @@
+/**
+ * DeleteWSFaceFacadeSrvProxyService.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.steerinfo.dil.wsdlTest;
+
+public interface DeleteWSFaceFacadeSrvProxyService extends javax.xml.rpc.Service {
+    public String getWSFaceFacadeAddress();
+
+    public DeleteWSFaceFacadeSrvProxy getWSFaceFacade() throws javax.xml.rpc.ServiceException;
+
+    public DeleteWSFaceFacadeSrvProxy getWSFaceFacade(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;
+}

+ 142 - 0
src/main/java/com/steerinfo/dil/wsdlTest/DeleteWSFaceFacadeSrvProxyServiceLocator.java

@@ -0,0 +1,142 @@
+/**
+ * DeleteWSFaceFacadeSrvProxyServiceLocator.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.steerinfo.dil.wsdlTest;
+
+public class DeleteWSFaceFacadeSrvProxyServiceLocator extends org.apache.axis.client.Service implements DeleteWSFaceFacadeSrvProxyService {
+
+    public DeleteWSFaceFacadeSrvProxyServiceLocator() {
+    }
+
+
+    public DeleteWSFaceFacadeSrvProxyServiceLocator(org.apache.axis.EngineConfiguration config) {
+        super(config);
+    }
+
+    public DeleteWSFaceFacadeSrvProxyServiceLocator(String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
+        super(wsdlLoc, sName);
+    }
+
+    // Use to get a proxy class for WSFaceFacade
+    private String WSFaceFacade_address = "http://172.16.62.243:8888/ormrpc/services/WSFaceFacade";
+
+    public String getWSFaceFacadeAddress() {
+        return WSFaceFacade_address;
+    }
+
+    // The WSDD service name defaults to the port name.
+    private String WSFaceFacadeWSDDServiceName = "WSFaceFacade";
+
+    public String getWSFaceFacadeWSDDServiceName() {
+        return WSFaceFacadeWSDDServiceName;
+    }
+
+    public void setWSFaceFacadeWSDDServiceName(String name) {
+        WSFaceFacadeWSDDServiceName = name;
+    }
+
+    public DeleteWSFaceFacadeSrvProxy getWSFaceFacade() throws javax.xml.rpc.ServiceException {
+       java.net.URL endpoint;
+        try {
+            endpoint = new java.net.URL(WSFaceFacade_address);
+        }
+        catch (java.net.MalformedURLException e) {
+            throw new javax.xml.rpc.ServiceException(e);
+        }
+        return getWSFaceFacade(endpoint);
+    }
+
+    public DeleteWSFaceFacadeSrvProxy getWSFaceFacade(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
+        try {
+            DeleteDeleteWSFaceFacadeSoapBindingStub _stub = new DeleteDeleteWSFaceFacadeSoapBindingStub(portAddress, this);
+            _stub.setPortName(getWSFaceFacadeWSDDServiceName());
+            return _stub;
+        }
+        catch (org.apache.axis.AxisFault e) {
+            return null;
+        }
+    }
+
+    public void setWSFaceFacadeEndpointAddress(String address) {
+        WSFaceFacade_address = address;
+    }
+
+    /**
+     * For the given interface, get the stub implementation.
+     * If this service has no port for the given interface,
+     * then ServiceException is thrown.
+     */
+    public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
+        try {
+            if (DeleteWSFaceFacadeSrvProxy.class.isAssignableFrom(serviceEndpointInterface)) {
+                DeleteDeleteWSFaceFacadeSoapBindingStub _stub = new DeleteDeleteWSFaceFacadeSoapBindingStub(new java.net.URL(WSFaceFacade_address), this);
+                _stub.setPortName(getWSFaceFacadeWSDDServiceName());
+                return _stub;
+            }
+        }
+        catch (Throwable t) {
+            throw new javax.xml.rpc.ServiceException(t);
+        }
+        throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface:  " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
+    }
+
+    /**
+     * For the given interface, get the stub implementation.
+     * If this service has no port for the given interface,
+     * then ServiceException is thrown.
+     */
+    public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
+        if (portName == null) {
+            return getPort(serviceEndpointInterface);
+        }
+        String inputPortName = portName.getLocalPart();
+        if ("WSFaceFacade".equals(inputPortName)) {
+            return getWSFaceFacade();
+        }
+        else  {
+            java.rmi.Remote _stub = getPort(serviceEndpointInterface);
+            ((org.apache.axis.client.Stub) _stub).setPortName(portName);
+            return _stub;
+        }
+    }
+
+    public javax.xml.namespace.QName getServiceName() {
+        return new javax.xml.namespace.QName("http://172.16.62.243:8888/ormrpc/services/WSFaceFacade", "DeleteWSFaceFacadeSrvProxyService");
+    }
+
+    private java.util.HashSet ports = null;
+
+    public java.util.Iterator getPorts() {
+        if (ports == null) {
+            ports = new java.util.HashSet();
+            ports.add(new javax.xml.namespace.QName("http://172.16.62.243:8888/ormrpc/services/WSFaceFacade", "WSFaceFacade"));
+        }
+        return ports.iterator();
+    }
+
+    /**
+    * Set the endpoint address for the specified port name.
+    */
+    public void setEndpointAddress(String portName, String address) throws javax.xml.rpc.ServiceException {
+        
+if ("WSFaceFacade".equals(portName)) {
+            setWSFaceFacadeEndpointAddress(address);
+        }
+        else 
+{ // Unknown Port Name
+            throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
+        }
+    }
+
+    /**
+    * Set the endpoint address for the specified port name.
+    */
+    public void setEndpointAddress(javax.xml.namespace.QName portName, String address) throws javax.xml.rpc.ServiceException {
+        setEndpointAddress(portName.getLocalPart(), address);
+    }
+
+}

+ 87 - 0
src/main/java/com/steerinfo/dil/wsdlTest/DeleteWSInvokeException.java

@@ -0,0 +1,87 @@
+/**
+ * DeleteWSInvokeException.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package com.steerinfo.dil.wsdlTest;
+
+public class DeleteWSInvokeException extends org.apache.axis.AxisFault  implements java.io.Serializable {
+    public DeleteWSInvokeException() {
+    }
+
+    private Object __equalsCalc = null;
+    public synchronized boolean equals(Object obj) {
+        if (!(obj instanceof DeleteWSInvokeException)) return false;
+        DeleteWSInvokeException other = (DeleteWSInvokeException) obj;
+        if (obj == null) return false;
+        if (this == obj) return true;
+        if (__equalsCalc != null) {
+            return (__equalsCalc == obj);
+        }
+        __equalsCalc = obj;
+        boolean _equals;
+        _equals = true;
+        __equalsCalc = null;
+        return _equals;
+    }
+
+    private boolean __hashCodeCalc = false;
+    public synchronized int hashCode() {
+        if (__hashCodeCalc) {
+            return 0;
+        }
+        __hashCodeCalc = true;
+        int _hashCode = 1;
+        __hashCodeCalc = false;
+        return _hashCode;
+    }
+
+    // Type metadata
+    private static org.apache.axis.description.TypeDesc typeDesc =
+        new org.apache.axis.description.TypeDesc(DeleteWSInvokeException.class, true);
+
+    static {
+        typeDesc.setXmlType(new javax.xml.namespace.QName("urn:client.facefacade", "DeleteWSInvokeException"));
+    }
+
+    /**
+     * Return type metadata object
+     */
+    public static org.apache.axis.description.TypeDesc getTypeDesc() {
+        return typeDesc;
+    }
+
+    /**
+     * Get Custom Serializer
+     */
+    public static org.apache.axis.encoding.Serializer getSerializer(
+           String mechType,
+           Class _javaType,
+           javax.xml.namespace.QName _xmlType) {
+        return 
+          new  org.apache.axis.encoding.ser.BeanSerializer(
+            _javaType, _xmlType, typeDesc);
+    }
+
+    /**
+     * Get Custom Deserializer
+     */
+    public static org.apache.axis.encoding.Deserializer getDeserializer(
+           String mechType,
+           Class _javaType,
+           javax.xml.namespace.QName _xmlType) {
+        return 
+          new  org.apache.axis.encoding.ser.BeanDeserializer(
+            _javaType, _xmlType, typeDesc);
+    }
+
+
+    /**
+     * Writes the exception data to the faultDetails
+     */
+    public void writeDetails(javax.xml.namespace.QName qname, org.apache.axis.encoding.SerializationContext context) throws java.io.IOException {
+        context.serialize(qname, null, this);
+    }
+}

+ 47 - 0
src/main/java/com/steerinfo/dil/wsdlTest/LoginTestUtil.java

@@ -0,0 +1,47 @@
+package com.steerinfo.dil.wsdlTest;
+
+
+import com.steerinfo.dil.wsdl.EASLoginProxy;
+import com.steerinfo.dil.wsdl.EASLoginProxyServiceLocator;
+import com.steerinfo.dil.wsdl.ServiceInfo;
+import com.steerinfo.dil.wsdl.WSContext;
+import org.hibernate.sql.Delete;
+
+import javax.xml.rpc.ServiceException;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.rmi.RemoteException;
+
+/**
+ * 登录
+ */
+public class LoginTestUtil {
+//    private static final Logger LOGGER = LoggerFactory.getLogger(LoginUtil.class);
+
+    //登陆实现
+    public static WSContext doEASLogin (DeleteServiceInfo serviceInfo) {
+        URL endpoint;
+
+        try {
+            endpoint = new URL(serviceInfo.getServername() + "EASLogin");
+        } catch (MalformedURLException e) {
+//            LOGGER.error("[ERROR] new mal URL Error",e);
+            throw new RuntimeException(e);
+        }
+        EASLoginProxy proxy;
+        try {
+            proxy = new EASLoginProxyServiceLocator().getEASLogin(endpoint);
+        } catch (ServiceException e1) {
+//            LOGGER.error("[ERROR] getEASLogin Error", e1);
+            throw new RuntimeException(e1);
+        }
+        try {
+            return proxy.login(serviceInfo.getUserName(), serviceInfo.getPassword(),
+                    serviceInfo.getSlnName(), serviceInfo.getDcName(),
+                    serviceInfo.getLanguage(), serviceInfo.getDbType());
+        } catch (RemoteException e2) {
+//            LOGGER.error("[ERROR] proxy.login Error", e2);    日志
+            throw new RuntimeException(e2);
+        }
+    }
+}

+ 100 - 0
src/main/java/com/steerinfo/dil/wsdlTest/TestFaceFacade.java

@@ -0,0 +1,100 @@
+package com.steerinfo.dil.wsdlTest;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import com.steerinfo.dil.wsdl.LoginUtil;
+import com.steerinfo.dil.wsdl.ServiceInfo;
+import com.steerinfo.dil.wsdl.WSContext;
+
+
+public class TestFaceFacade {
+    public static void main(String args[]) {
+//        要先登陆EAS才能调用后续接口,登录传递参数说明如下:
+//        String userName	//EAS登录用户名,可以是user或其他有效的用户名
+//        String password	//EAS用户登录密码
+//        String slnName	//eas
+//        String dcName	//注册的数据中心名称
+//        String language	//登录的语言
+//        Int32 dbType	//数据类型,0:MSSQL,1:ORACLE
+        //DeleteServiceInfo service = new DeleteServiceInfo("user", "lth3690", "eas", "A005", "L2", 1);
+        //DeleteServiceInfo service = new DeleteServiceInfo("01514","321","eas","EAS1101","l2",1);
+        //DeleteServiceInfo service = new DeleteServiceInfo("user", "kduser", "eas", "CSTO_UAT", "L2", 0);
+//        DeleteServiceInfo service = new DeleteServiceInfo("user", "dgjt@kingdee", "eas", "FDDGEAS85", "L2", 1);
+//        DeleteServiceInfo service = new DeleteServiceInfo("user", "lth3690", "eas", "A001", "L2", 1);
+        //DeleteServiceInfo service = new DeleteServiceInfo("user", "user2019", "eas", "EASTEST", "L2", 1);
+//        DeleteServiceInfo service = new DeleteServiceInfo("user", "kduser", "eas", "D001", "L2", 1);
+        //service.setServername("172.16.62.243","56898");//地址和端口号
+        //service.setServername("10.99.0.2","56898");//地址和端口号
+//        service.setServername("10.192.200.28","56898");//地址和端口号
+        //service.setServername("125.68.188.158","6888");//地址和端口号
+        //service.setServername("10.192.106.5","6888");//地址和端口号
+        //service.setServername("10.192.200.28" , "56898");
+        //service.setServername("192.168.55.110" , "56898");
+        //service.setServername("127.0.0.1" , "56898");
+//        service.setServername("172.16.62.243" , "56898");
+//        service.setServername("172.16.33.111" , "8900");
+//        service.setServername("172.16.62.243" , "56898");
+//        DeleteServiceInfo service = new DeleteServiceInfo("黄英", "123", "eas", "NT11", "L2", 1);
+//        service.setServername("172.16.200.57" , "6888");
+
+//        DeleteServiceInfo service = new DeleteServiceInfo("user", "dgjt@kingdee", "eas", "FDDGEAS85", "L2", 1);//正式账套
+        ServiceInfo service = new ServiceInfo("user", "dgjt@kingdee", "eas", "A004", "L2", 1);//测试服务器正式账套
+//        DeleteServiceInfo service = new DeleteServiceInfo("user", "dgjt@kingdee", "eas", "zseas85", "L2", 1);//本地远程正式
+//        DeleteServiceInfo service = new DeleteServiceInfo("user", "dgjt@kingdee", "eas", "zseas85", "L2", 1);//远程测试
+//        service.setServername("172.16.62.243" , "56898");//远程开发机bos地址
+//        service.setServername("172.16.33.111" , "8888");//正式服务器
+        service.setServername("172.16.62.243" , "8888");//测试服务器
+//        service.setServername("172.16.49.135" , "56898");
+//        service.setServername("127.0.0.1" , "56898");//本机
+
+        long startT = System.currentTimeMillis();
+
+        WSContext wsContext = LoginUtil.doEASLogin(service);
+
+        String sessionId = wsContext.getSessionId();
+        if(null == sessionId) {
+            System.out.println("[error]: 登陆有问题");
+            return;
+        }
+
+        try {
+            String result = null;
+//            DeleteWSFaceFacadeSrvProxyServiceLocator locator = new DeleteWSFaceFacadeSrvProxyServiceLocator();
+            DeleteWSFaceFacadeSrvProxyServiceLocator locator = new DeleteWSFaceFacadeSrvProxyServiceLocator();
+            String json ="{\n" +
+                    "    \"input\": {\n" +
+                    "        \"head\": {\n" +
+                    "            \"number\": \"XSDD-20220427-00049063\",\n" +
+                    "            \"wholeOrder\": \"1\",\n" +
+                    "            \"status\": \"close\",\n" +
+                    "            \"reason\": \"原因\"\n" +
+                    "        }\n" +
+                    "    },\n" +
+                    "    \"context\": {\n" +
+                    "        \"logError\": true,\n" +
+                    "        \"logData\": true\n" +
+                    "    },\n" +
+                    "    \"login\": {\n" +
+                    "        \"password\": \"dgjt@kingdee\",\n" +
+                    "        \"dcName\": \"A004\",\n" +
+                    "        \"dbType\": \"0\",\n" +
+                    "        \"userName\": \"user\"\n" +
+                    "    },\n" +
+                    "    \"command\": \"saveSaleOrderBillHandler\"\n" +
+                    "}";
+            String res = locator.getWSFaceFacade().invokeJson(json);
+            JSONObject request = JSON.parseObject(res);
+            String output = request.getString("output");
+            String requestException = request.getString("exception");
+            System.out.println("成功:"+output);
+            System.out.println("失败:"+requestException);
+            System.out.println("返回值:"+request);
+//            String outResult = FaceEncryptUtil.AES_Decrypt(output, "FXXT");
+//            System.out.println(res);//调用接口后返回的结果数据
+//            System.out.println(outResult);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+
+    }
+}

+ 26 - 0
src/main/resources/com/steerinfo/dil/mapper/AmsSaleOrderMapper.xml

@@ -707,4 +707,30 @@
     FROM RMS_SHIPPER RS
     WHERE RS.SHIPPER_NAME = #{shipperUnit}
   </select>
+
+  <!-- 关闭未进厂的运单 -->
+  <update id="closeOrderNotIn" parameterType="DECIMAL" >
+    UPDATE OMSTRUCK_ORDER OO
+    SET OO.ORDER_STATUS = 7
+    WHERE OO.ORDER_ID IN (
+      SELECT OO.ORDER_ID "orderId"
+      FROM AMS_SALE_ORDER_MATERIAL ASOM
+             LEFT JOIN OMSTRUCK_ORDER OO
+                       ON OO.ORDER_PLAN_ID = ASOM.SALE_ORDER_MATERIAL_ID
+        LEFT JOIN TMSTRUCK_TOTAL_RESULT TTR
+      ON TTR.ORDER_ID = OO.ORDER_ID
+      LEFT JOIN TMSTRUCK_ENFACTORY_RESULT TER
+      ON TER.RESULT_TOTAL_ID = TTR.RESULT_TOTAL_ID
+      WHERE ASOM.SALE_ORDER_ID = #{saleOrderId}
+        AND TER.RESULT_ENTRY_GATE_TIME IS NULL
+        AND OO.ORDER_ID IS NOT NULL
+        AND OO.ORDER_STATUS IN (4,5)
+    )
+  </update>
+
+  <select id="getWareHouse" parameterType="DECIMAL" resultType="java.util.Map">
+    SELECT ASM.SALE_WAREHOUSE AS "warehouse"
+    FROM AMS_SALE_MATERIAL ASM
+    WHERE ASM.SALE_ORDER_ID = #{saleOrderId}
+  </select>
 </mapper>

+ 23 - 0
src/main/resources/com/steerinfo/dil/mapper/UtilsMapper.xml

@@ -195,4 +195,27 @@
              )
         where rownum = 1
     </select>
+
+    <select id="getInboundData" resultType="java.util.Map">
+        SELECT '轧钢厂'                                  "mainDepartment",
+               RW.WAREHOUSE_NAME                      "warehouseName",
+               RM.MATERIAL_CODE                       "materialCode",
+               RM.MATERIAL_NAME || RM.MATERIAL_LENGTH "materiaName",
+               RM.MATERIAL_SPECIFICATION || '(' ||
+               RM.MATERIAL_MODEL || ')'               "materialModel",
+               rms.MATERIAL_THEORETICAL_WEIGHT        "theoreticalWeight",
+               rms.MATERIAL_COUNT                     "materialCount",
+               '方大钢材库'                                "wareHouse"
+        FROM wmsp_inbound_result wir
+                 LEFT JOIN WMSP_GRID_MATERIAL wgm
+                           ON wgm.MATERIAL_ID = wir.MATERIAL_ID
+                 LEFT JOIN RMS_MATERIAL_STEEL rms
+                           ON rms.MATERIAL_STEEL_ID = wir.MATERIAL_ID
+                 LEFT JOIN RMS_MATERIAL rm
+                           ON rm.MATERIAL_ID = rms.MATERIAL_ID
+                 LEFT JOIN RMS_PWAREHOUSE_GRID rpg
+                           ON RPG.GRID_ID = wir.GRID_ID
+                 LEFT JOIN RMS_WAREHOUSE RW
+                           ON RW.WAREHOUSE_ID = rpg.WAREHOUSE_ID
+    </select>
 </mapper>