Pārlūkot izejas kodu

'修改日期接收类型'

HUJIANGUO 3 gadi atpakaļ
vecāks
revīzija
3b89635640
30 mainītis faili ar 1398 papildinājumiem un 155 dzēšanām
  1. 17 3
      pom.xml
  2. 2 1
      src/main/java/com/steerinfo/DilApplicationMain.java
  3. 2 2
      src/main/java/com/steerinfo/dil/controller/BmsshipDetailsOrderController.java
  4. 2 2
      src/main/java/com/steerinfo/dil/controller/BmsshipStatementController.java
  5. 2 2
      src/main/java/com/steerinfo/dil/controller/BmstrainDetailsOrderController.java
  6. 2 2
      src/main/java/com/steerinfo/dil/controller/BmstrainStatementController.java
  7. 2 2
      src/main/java/com/steerinfo/dil/controller/BmstruckDetailsOrderController.java
  8. 45 0
      src/main/java/com/steerinfo/dil/controller/WSFaceController.java
  9. 11 3
      src/main/java/com/steerinfo/dil/service/impl/AmsPurchaseOrderServiceImpl.java
  10. 14 9
      src/main/java/com/steerinfo/dil/service/impl/BmsportHandlingFeeServiceImpl.java
  11. 2 2
      src/main/java/com/steerinfo/dil/service/impl/BmsshipDetailsOrderServiceImpl.java
  12. 15 5
      src/main/java/com/steerinfo/dil/service/impl/BmsshipStatementServiceImpl.java
  13. 8 5
      src/main/java/com/steerinfo/dil/service/impl/BmstrainStatementServiceImpl.java
  14. 13 8
      src/main/java/com/steerinfo/dil/service/impl/BmstruckDetailsOrderServiceImpl.java
  15. 14 10
      src/main/java/com/steerinfo/dil/service/impl/BmstruckStatementServiceImpl.java
  16. 69 0
      src/main/java/com/steerinfo/dil/util/EASUtil.java
  17. 111 0
      src/main/java/com/steerinfo/dil/wsdl/ServiceInfo.java
  18. 0 62
      src/main/java/com/steerinfo/dil/wsdl/SoapUtil.java
  19. 115 0
      src/main/java/com/steerinfo/dil/wsdl/TestDG.java
  20. 93 0
      src/main/java/com/steerinfo/dil/wsdl/TestEasUtil.java
  21. 583 0
      src/main/java/com/steerinfo/dil/wsdl/WSFaceFacadeSoapBindingStub.java
  22. 22 0
      src/main/java/com/steerinfo/dil/wsdl/WSFaceFacadeSrvProxy.java
  23. 16 0
      src/main/java/com/steerinfo/dil/wsdl/WSFaceFacadeSrvProxyService.java
  24. 142 0
      src/main/java/com/steerinfo/dil/wsdl/WSFaceFacadeSrvProxyServiceLocator.java
  25. 87 0
      src/main/java/com/steerinfo/dil/wsdl/WSInvokeException.java
  26. 0 33
      src/main/java/com/steerinfo/dil/wsdl/WsdlSoapTest.java
  27. 2 1
      src/main/resources/com/steerinfo/dil/mapper/BmsportHandlingFeeMapper.xml
  28. 3 1
      src/main/resources/com/steerinfo/dil/mapper/BmsshipStatementMapper.xml
  29. 2 1
      src/main/resources/com/steerinfo/dil/mapper/BmstrainStatementMapper.xml
  30. 2 1
      src/main/resources/com/steerinfo/dil/mapper/BmstruckDetailsOrderMapper.xml

+ 17 - 3
pom.xml

@@ -130,16 +130,30 @@
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
-            <version>1.7.25</version>
+            <version>1.7.22</version>
         </dependency>
 
-        <!--还是引入其中一个实现类-->
+<!--        还是引入其中一个实现类-->
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-log4j12</artifactId>
+            <version>1.7.22</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-nop</artifactId>
             <version>1.7.21</version>
         </dependency>
 
+        <dependency>
+            <groupId>com.alibaba</groupId>
+            <artifactId>fastjson</artifactId>
+            <version>1.2.41</version>
+        </dependency>
+
+
+
     </dependencies>
     <build>
         <plugins>
@@ -155,7 +169,7 @@
                     <!--包名-->
                     <targetPackage>com.steerinfo.dil</targetPackage>
                     <tables>
-                        <table>DIL_BATCH</table>
+<!--                        <table>DIL_BATCH</table>-->
                     </tables>
                 </configuration>
                 <executions>

+ 2 - 1
src/main/java/com/steerinfo/DilApplicationMain.java

@@ -3,6 +3,7 @@ package com.steerinfo;
 import org.mybatis.spring.annotation.MapperScan;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
 import org.springframework.boot.web.servlet.ServletComponentScan;
 import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
 import org.springframework.cloud.openfeign.EnableFeignClients;
@@ -13,12 +14,12 @@ import org.springframework.scheduling.annotation.EnableScheduling;
  * @Date 2021/4/21 14:32
  * @Version 1.0
  */
-@SpringBootApplication
 @ServletComponentScan
 @EnableScheduling
 @MapperScan({"com.steerinfo.dil.mapper"})
 @EnableFeignClients(basePackages = "com.steerinfo.dil.feign")
 @EnableDiscoveryClient
+@SpringBootApplication(exclude = SecurityAutoConfiguration.class)
 public class DilApplicationMain {
     public static void main(String[] args) {
         SpringApplication.run(DilApplicationMain.class,args);

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

@@ -39,8 +39,8 @@ public class BmsshipDetailsOrderController extends BaseRESTfulController {
     })
     @PostMapping("/getPurchaseShipDetails")
     public List<Map<String, Object>> getPurchaseShipDetails(@RequestParam Integer statementId) {
-        List<Map<String,Object>> mapList = bmsshipDetailsOrderService.getPurchaseShipDetails(statementId);
-        return mapList;
+        List<Map<String,Object>> entries = bmsshipDetailsOrderService.getPurchaseShipDetails(statementId);
+        return entries;
     }
 
 

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

@@ -35,8 +35,8 @@ public class BmsshipStatementController extends BaseRESTfulController {
     })
     @PostMapping("/getShipStatement")
     public Map<String, Object> getShipStatement(@RequestParam Integer statementId) {
-        Map<String,Object> mapValue = bmsshipStatementService.getShipStatement(statementId);
-        return mapValue;
+        Map<String,Object> head = bmsshipStatementService.getShipStatement(statementId);
+        return head;
     }
 
 

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

@@ -39,8 +39,8 @@ public class BmstrainDetailsOrderController extends BaseRESTfulController {
     })
     @PostMapping("/getPurchaseTrainDetailsOrder")
     public List<Map<String, Object>> getPurchaseTrainDetailsOrder(@RequestParam Integer statementId) {
-        List<Map<String, Object>> mapList = bmstrainDetailsOrderService.getPurchaseTrainDetailsOrder(statementId);
-        return mapList;
+        List<Map<String, Object>> entries = bmstrainDetailsOrderService.getPurchaseTrainDetailsOrder(statementId);
+        return entries;
     }
 
 

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

@@ -36,8 +36,8 @@ public class BmstrainStatementController extends BaseRESTfulController {
     })
     @PostMapping("/getTrainStatement")
     public Map<String, Object> getTrainStatement(@RequestParam Integer statementId) {
-        Map<String,Object> mapValue = bmstrainStatementService.getTrainStatement(statementId);
-        return mapValue;
+        Map<String,Object> head = bmstrainStatementService.getTrainStatement(statementId);
+        return head;
     }
 
     /**

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

@@ -39,8 +39,8 @@ public class BmstruckDetailsOrderController extends BaseRESTfulController {
     })
     @PostMapping("/getPurchaseDetailsOrder")
     public Map<String, Object> getPurchaseDetailsOrder(@RequestParam Integer detailsId) {
-        Map<String,Object> mapValue = bmstruckDetailsOrderService.getPurchaseDetailsOrder(detailsId);
-        return mapValue;
+        Map<String,Object> input = bmstruckDetailsOrderService.getPurchaseDetailsOrder(detailsId);
+        return input;
     }
 
     /**

+ 45 - 0
src/main/java/com/steerinfo/dil/controller/WSFaceController.java

@@ -0,0 +1,45 @@
+package com.steerinfo.dil.controller;
+
+import com.alibaba.druid.support.json.JSONUtils;
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import com.steerinfo.dil.util.BaseRESTfulController;
+import com.steerinfo.dil.wsdl.ServiceInfo;
+import com.steerinfo.dil.wsdl.WSFaceFacadeSrvProxyServiceLocator;
+import io.swagger.annotations.ApiModelProperty;
+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.Map;
+
+/**
+ * @Description:
+ * @Author:HuJianGuo
+ * @GreateTime:2021/11/15 18:12
+ * @Version:V2.0
+ */
+@RestController
+@RequestMapping("/${api.version}/wsface")
+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);
+        WSFaceFacadeSrvProxyServiceLocator locator = new WSFaceFacadeSrvProxyServiceLocator();
+        service.setServername("172.16.62.243" , "56898");
+        String output = null;
+        try {
+            // 这边是map,将map封装后转为json
+            String json = JSONUtils.toJSONString(map);
+            String res = locator.getWSFaceFacade().invokeJson(json);
+            JSONObject request = JSON.parseObject(res);
+            output = request.getString("output");
+            System.out.println(output);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        return output;
+    }
+}

+ 11 - 3
src/main/java/com/steerinfo/dil/service/impl/AmsPurchaseOrderServiceImpl.java

@@ -10,6 +10,8 @@ import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 
 import java.math.BigDecimal;
+import java.text.ParseException;
+import java.text.SimpleDateFormat;
 import java.util.Date;
 import java.util.HashMap;
 import java.util.List;
@@ -88,16 +90,22 @@ public class AmsPurchaseOrderServiceImpl implements IAmsPurchaseOrderService {
         // 得到订货数量
         String purchaseOrderMaterialNumber = (String) mapVal.get("purchaseOrderMaterialNumber");
         // 得到订单日期
-        Date purchaseOrderDate = new Date ((Long) mapVal.get("purchaseOrderDate"));
+        String purchaseOrderDateStr = (String) mapVal.get("purchaseOrderDate");
+        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
+        AmsPurchaseOrder amsPurchaseOrder = new AmsPurchaseOrder();
+        try {
+            Date purchaseOrderDate = sdf.parse(purchaseOrderDateStr);
+            amsPurchaseOrder.setPurchaseOrderDate(purchaseOrderDate);
+        } catch (ParseException e) {
+            e.printStackTrace();
+        }
         // 得到供应商代码
         String supplierDutyParagraph = (String) mapVal.get("supplierDutyParagraph");
         BigDecimal supplierId = amsPurchaseOrderMapper.getSupplierId(supplierDutyParagraph);
         // 得到数据状态
         Integer dataStatus = (Integer) mapVal.get("dataStatus");
-        AmsPurchaseOrder amsPurchaseOrder = new AmsPurchaseOrder();
         amsPurchaseOrder.setPurchaseOrderNo(purchaseOrderNo);
         amsPurchaseOrder.setPurchaseOrderBuyer(purchaseOrderBuyer);
-        amsPurchaseOrder.setPurchaseOrderDate(purchaseOrderDate);
         amsPurchaseOrder.setPuchaseOrderMaterialNumber(new BigDecimal(purchaseOrderMaterialNumber));
         amsPurchaseOrder.setBatchId(batchId);
         amsPurchaseOrder.setSupplierUnitId(supplierId);

+ 14 - 9
src/main/java/com/steerinfo/dil/service/impl/BmsportHandlingFeeServiceImpl.java

@@ -47,16 +47,21 @@ public class BmsportHandlingFeeServiceImpl implements IBmsportHandlingFeeService
         Map<String, Object> map = entries.get(0);
         BigDecimal statementTotalAmount = (BigDecimal) map.get("amount");
         Date statementTime = (Date) map.get("detailDate");
-        Map<String,Object> mapValue = new HashMap<>();
+        Map<String,Object> head = new HashMap<>();
         Map<String,Object> otherMap = bmsportHandlingFeeMapper.getOtherMessage(new BigDecimal(feeId));
-        mapValue.put("entries",entries);
-        mapValue.put("allAmount",statementTotalAmount);
-        mapValue.put("bizDate",statementTime);
-        mapValue.put("billNum","");
+        head.put("allAmount",statementTotalAmount);
+        head.put("bizDate",statementTime);
+        head.put("billNum","");
         String amountType = "港口装卸费";
-        mapValue.put("amountType",amountType);
-        mapValue.put("collectionUnitName","");
-        mapValue.putAll(otherMap);
-        return mapValue;
+        head.put("amountType",amountType);
+        head.put("collectionUnitName","");
+        head.put("payUnitNum","");
+        head.put("receivedUnitNum","");
+        head.put("collectionUnitNum","");
+        head.putAll(otherMap);
+        Map<String,Object> input = new HashMap<>();
+        input.put("entries",entries);
+        input.put("head",head);
+        return head;
     }
 }

+ 2 - 2
src/main/java/com/steerinfo/dil/service/impl/BmsshipDetailsOrderServiceImpl.java

@@ -43,7 +43,7 @@ public class BmsshipDetailsOrderServiceImpl extends BaseServiceImpl<BmsshipDetai
      */
     @Override
     public List<Map<String, Object>> getPurchaseShipDetails(Integer statementId) {
-        List<Map<String,Object>> mapList = bmsshipDetailsOrderMapper.getPurchaseShipDetails(new BigDecimal(statementId));
-        return mapList;
+        List<Map<String,Object>> entries = bmsshipDetailsOrderMapper.getPurchaseShipDetails(new BigDecimal(statementId));
+        return entries;
     }
 }

+ 15 - 5
src/main/java/com/steerinfo/dil/service/impl/BmsshipStatementServiceImpl.java

@@ -38,9 +38,9 @@ public class BmsshipStatementServiceImpl implements IBmsshipStatementService {
      */
     @Override
     public Map<String, Object> getShipStatement(Integer statementId) {
-        Map<String, Object> mapValue = bmsshipStatementMapper.getShipStatement(new BigDecimal(statementId));
+        Map<String, Object> head = bmsshipStatementMapper.getShipStatement(new BigDecimal(statementId));
         List<Map<String, Object>> mapList = bmsshipStatementMapper.getShipOtherMessage(new BigDecimal(statementId));
-        String amountType = (String) mapValue.get("amountType");
+        String amountType = (String) head.get("amountType");
         Map<String, Object> map = new HashMap<>();
         if (amountType.equals("水运费")) {
             // 发货单位和收款单位
@@ -49,10 +49,16 @@ public class BmsshipStatementServiceImpl implements IBmsshipStatementService {
             String payUnitName = bmsshipStatementMapper.getShipPaymentUnit(new BigDecimal(statementId));
             map.putAll(shipMap);
             map.put("payUnitName",payUnitName);
+            map.put("payUnitNum","");
+            map.put("receivedUnitNum","");
+            map.put("collectionUnitNum","");
         }
         if (amountType.equals("物流途损超标扣款")) {
             // 付款单位,发货单位,收款单位
             Map<String,Object> lossMap = bmsshipStatementMapper.getLossPaymentUnit(new BigDecimal(statementId));
+            map.put("collectionUnitNum","");
+            map.put("receivedUnitNum","");
+            map.put("payUnitNum","");
             map.putAll(lossMap);
         }
         if (amountType.equals("水分检测费")) {
@@ -60,10 +66,14 @@ public class BmsshipStatementServiceImpl implements IBmsshipStatementService {
             String forwordUnitNum = "";
             String collectionUnitName = "";
             map.put("payUnitName",payUnitName);
-            map.put("forwordUnitNum",forwordUnitNum);
+            map.put("forwordUnitName",payUnitName);
             map.put("collectionUnitName",collectionUnitName);
+            map.put("payUnitNum",payUnitName);
+            map.put("forwordUnitNum",forwordUnitNum);
+            map.put("collectionUnitNum",payUnitName);
+            map.put("receivedUnitNum",payUnitName);
         }
-        mapValue.putAll(map);
-        return mapValue;
+        head.putAll(map);
+        return head;
     }
 }

+ 8 - 5
src/main/java/com/steerinfo/dil/service/impl/BmstrainStatementServiceImpl.java

@@ -38,15 +38,18 @@ public class BmstrainStatementServiceImpl implements IBmstrainStatementService {
      */
     @Override
     public Map<String, Object> getTrainStatement(Integer statementId) {
-        Map<String, Object> mapValue = bmstrainStatementMapper.getTrainStatement(new BigDecimal(statementId));
+        Map<String, Object> head = bmstrainStatementMapper.getTrainStatement(new BigDecimal(statementId));
         List<Map<String,Object>> mapList = bmstrainStatementMapper.getCarrierAndReceiver(new BigDecimal(statementId));
         Map<String, Object> map = mapList.get(0);
         String amountType = "采购火运";
         String collectionUnitName = "成都铁路局";
-        mapValue.put("amountType",amountType);
-        mapValue.put("collectionUnitName",collectionUnitName);
-        mapValue.putAll(map);
-        return mapValue;
+        head.put("amountType",amountType);
+        head.put("payUnitNum","");
+        head.put("receivedUnitNum","");
+        head.put("collectionUnitNum","");
+        head.put("collectionUnitName",collectionUnitName);
+        head.putAll(map);
+        return head;
     }
 
     /**

+ 13 - 8
src/main/java/com/steerinfo/dil/service/impl/BmstruckDetailsOrderServiceImpl.java

@@ -43,19 +43,24 @@ public class BmstruckDetailsOrderServiceImpl implements IBmstruckDetailsOrderSer
             map.put("endPoint","");
         }
         String amountType = "采购汽运";
-        Map<String,Object> mapValue = new HashMap<>();
+        Map<String,Object> head = new HashMap<>();
         String billNum = "";
         Date bizDate = (Date) (entries.get(0).get("bizDate"));
         BigDecimal amount = (BigDecimal) (entries.get(0).get("amount"));
         Double statementExcludTax = amount.doubleValue();
         Map<String,Object> statementMap = bmstruckDetailsOrderMapper.getStatementMessage(new BigDecimal(detailsId));
-        mapValue.put("billNum",billNum);
-        mapValue.put("bizDate",bizDate);
-        mapValue.put("amountType",amountType);
-        mapValue.put("amount",statementExcludTax);
-        mapValue.put("entries",entries);
-        mapValue.putAll(statementMap);
-        return mapValue;
+        head.put("billNum",billNum);
+        head.put("bizDate",bizDate);
+        head.put("amountType",amountType);
+        head.put("amount",statementExcludTax);
+        head.put("receivedUnitNum","");
+        head.put("collectionUnitNum","");
+        head.put("payUnitNum","");
+        head.putAll(statementMap);
+        Map<String,Object> input = new HashMap<>();
+        input.put("head",head);
+        input.put("entries",entries);
+        return input;
     }
 
     /**

+ 14 - 10
src/main/java/com/steerinfo/dil/service/impl/BmstruckStatementServiceImpl.java

@@ -44,28 +44,32 @@ public class BmstruckStatementServiceImpl implements IBmstruckStatementService {
      */
     @Override
     public Map<String, Object> getStatement(Integer statementId) {
-        Map<String,Object> mapValue = bmstruckStatementMapper.getStatement(new BigDecimal(statementId));
+        Map<String,Object> head = bmstruckStatementMapper.getStatement(new BigDecimal(statementId));
         List<Map<String,Object>> mapList = bmstruckStatementMapper.getCarrierAndReceiver(new BigDecimal(statementId));
         String amountType = "销售汽运";
-        mapValue.put("amountType",amountType);
+        head.put("amountType",amountType);
         Map<String, Object> map = mapList.get(0);
-        mapValue.putAll(map);
-        return mapValue;
+        head.putAll(map);
+        head.put("payUnitNum","");
+        head.put("forwordUnitNum","");
+        head.put("receivedUnitNum","");
+        head.put("collectionUnitNum","");
+        return head;
     }
 
     /**
      * 修改账单信息
-     * @param mapValue
+     * @param head
      * @return
      */
     @Override
-    public int updateStatement(Map<String, Object> mapValue) {
+    public int updateStatement(Map<String, Object> head) {
         int result = 0;
         Map<String,Object> parametersMap = new HashMap<>();
-        String statementNumber = (String) mapValue.get("statementNumber");
-        List<Map<String,Object>> detailsNumberList = (List<Map<String, Object>>) mapValue.get("mapList");
-        String amount = (String) mapValue.get("amount");
-        String remark = (String) mapValue.get("remark");
+        String statementNumber = (String) head.get("statementNumber");
+        List<Map<String,Object>> detailsNumberList = (List<Map<String, Object>>) head.get("mapList");
+        String amount = (String) head.get("amount");
+        String remark = (String) head.get("remark");
         if (remark.equals("采购汽运")){
             Map<String, Object> map = detailsNumberList.get(0);
             String detailsNo = (String) map.get("detailsNo");

+ 69 - 0
src/main/java/com/steerinfo/dil/util/EASUtil.java

@@ -0,0 +1,69 @@
+package com.steerinfo.dil.util;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * 配置金蝶连接常量Map
+ * @Description:
+ * @Author:HuJianGuo
+ * @GreateTime:2021/11/15 19:44
+ * @Version:V2.0
+ */
+public class EASUtil {
+    // totalMap
+    public final Map<String,Object> totalMap = new HashMap<>();
+    // context
+    public final Map<String,Object> context = new HashMap<>();
+    public final boolean logError = true;
+    public final boolean logData = true;
+    // context
+    public final Map<String,Object> login = new HashMap<>();
+    public final String password = "kduser";
+    public final String dcName = "D001";
+    public final String dbType = "0";
+    public final String userName = "user";
+    // context
+    public final String command = "savePayOtherBill";
+
+    /**
+     * 得到context的map
+     * @return
+     */
+    public Map<String,Object> getContext(){
+        this.context.put("logError",logError);
+        this.context.put("logData",logData);
+        return this.context;
+    }
+
+    /**
+     * 得到login的map
+     * @return
+     */
+    public Map<String,Object> getLogin(){
+        this.login.put("password",password);
+        this.login.put("dcName",dcName);
+        this.login.put("dbType",dbType);
+        this.login.put("userName",userName);
+        return this.login;
+    }
+
+    /**
+     * 得到command字符串
+     * @return
+     */
+    public String getCommand(){
+        return this.command;
+    }
+
+    /**
+     * 将所有的配置放入到totalMap的map里面
+     * @return
+     */
+    public Map<String,Object> getTotalMap() {
+        totalMap.put("context",getContext());
+        totalMap.put("login",getLogin());
+        totalMap.put("command",getCommand());
+        return this.totalMap;
+    }
+}

+ 111 - 0
src/main/java/com/steerinfo/dil/wsdl/ServiceInfo.java

@@ -0,0 +1,111 @@
+package com.steerinfo.dil.wsdl;
+
+import java.io.Serializable;
+
+/**
+ * Description: weather1
+ * Created by ydx on 2018/8/13 13:39
+ */
+public class ServiceInfo 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 ServiceInfo(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 ServiceInfo() {
+
+    }
+
+    public ServiceInfo(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;
+    }
+}

+ 0 - 62
src/main/java/com/steerinfo/dil/wsdl/SoapUtil.java

@@ -1,62 +0,0 @@
-package com.steerinfo.dil.wsdl;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.io.OutputStreamWriter;
-import java.net.*;
-/**
- * @Description:
- * @Author:HuJianGuo
- * @GreateTime:2021/11/13 17:29
- * @Version:V2.0
- */
-
-public class SoapUtil {
-
-    /*
-     * 远程访问SOAP协议接口
-     *
-     * @param url: 服务接口地址"http://192.168.0.120:8222/HelloWorld?wsdl"
-     * @param isClass:接口类名
-     * @param isMethod: 接口方法名
-     * @param sendSoapString: soap协议xml格式访问接口
-     *
-     * @return  soap协议xml格式
-     *
-     * @备注:有四种请求头格式1、SOAP 1.1; 2、SOAP 1.2 ; 3、HTTP GET; 4、HTTP POST
-     * 参考---》http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?op=getWeatherbyCityName
-     */
-    public static String getWebServiceAndSoap(String url,String isClass,String isMethod,StringBuffer sendSoapString) throws IOException {
-        String soap = sendSoapString.toString();
-        if (soap == null) {
-            return null;
-        }
-        URL soapUrl = new URL(url);
-        URLConnection conn = soapUrl.openConnection();
-        conn.setUseCaches(false);
-        conn.setDoInput(true);
-        conn.setDoOutput(true);
-        conn.setRequestProperty("Content-Length",
-                Integer.toString(soap.length()));
-        conn.setRequestProperty("Content-Type", "text/xml; charset=utf-8");
-        // 调用的接口方法是
-        conn.setRequestProperty(isClass,isMethod);
-        OutputStream os = conn.getOutputStream();
-        OutputStreamWriter osw = new OutputStreamWriter(os, "utf-8");
-        osw.write(soap);
-        osw.flush();
-        osw.close();
-        // 获取webserivce返回的流
-        InputStream is = conn.getInputStream();
-        if (is!=null) {
-            byte[] bytes = new byte[0];
-            bytes = new byte[is.available()];
-            is.read(bytes);
-            String str = new String(bytes);
-            return str;
-        }else {
-            return null;
-        }
-    }
-}

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

@@ -0,0 +1,115 @@
+package com.steerinfo.dil.wsdl;
+
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import com.steerinfo.dil.wsdl.ServiceInfo;
+import com.steerinfo.dil.wsdl.WSFaceFacadeSrvProxyServiceLocator;
+
+
+public class TestDG {
+    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
+        //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);
+        //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");
+//        ServiceInfo service = new ServiceInfo("黄英", "123", "eas", "NT11", "L2", 1);
+//        service.setServername("172.16.200.57" , "6888");
+        com.steerinfo.dil.wsdl.ServiceInfo service = new ServiceInfo("user", "kduser", "eas", "D001", "L2", 1);
+        service.setServername("172.16.62.243" , "56898");
+        long startT = System.currentTimeMillis();
+        try {
+            String result = null;
+            WSFaceFacadeSrvProxyServiceLocator locator = new WSFaceFacadeSrvProxyServiceLocator();
+            // 这边是map,将map封装后转为json
+            String json ="{\n" +
+                    "\n" +
+                    "\t\"input\": {\n" +
+                    "\t\t\"head\": {\n" +
+                    "\t\t\t\"billNum\": \"9999999\",\n" +
+                    "\t\t\t\"bizDate\": \"2021-11-15\",\n" +
+                    "\t\t\t\"payUnitNum\": \"\",\n" +
+                    "\t\t\t\"payUnitName\": \"\",\n" +
+                    "\t\t\t\"forwordUnitNum\": \"DG001\",\n" +
+                    "\t\t\t\"forwordUnitName\": \"四川省达州钢铁集团有限责任公司\",\n" +
+                    "\t\t\t\"collectionUnitNum\": \"010300304\",\n" +
+                    "\t\t\t\"collectionUnitName\": \"010300304\",\n" +
+                    "\t\t\t\"receivedUnitNum\": \"\",\n" +
+                    "\t\t\t\"receivedUnitName\": \"\",\n" +
+                    "\t\t\t\"allAmount\": 11111\n" +
+                    "\t\t},\n" +
+                    "\t\t\"entries\": [{\n" +
+                    "\t\t\t\t\"detailNum\": \"111\",\n" +
+                    "\t\t\t\t\"detailDate\": \"2021-11-15\",\n" +
+                    "\t\t\t\t\"carNum\": \"001\",\n" +
+                    "\t\t\t\t\"startingPoint\": \"成都\",\n" +
+                    "\t\t\t\t\"endPoint\": \"达州\",\n" +
+                    "\t\t\t\t\"qty\": \"1\",\n" +
+                    "\t\t\t\t\"amount\": \"100\",\n" +
+                    "\t\t\t\t\"forwarder\": \"自提\",\n" +
+                    "\t\t\t\t\"matNum\": \"0101020300002\",\n" +
+                    "\t\t\t\t\"matName\": \"伊朗铁精粉\"\n" +
+                    "\t\t\t},\n" +
+                    "\t\t\t{\n" +
+                    "\t\t\t\t\"detailNum\": \"222\",\n" +
+                    "\t\t\t\t\"detailDate\": \"2021-11-15\",\n" +
+                    "\t\t\t\t\"carNum\": \"002\",\n" +
+                    "\t\t\t\t\"startingPoint\": \"成都\",\n" +
+                    "\t\t\t\t\"endPoint\": \"绵阳\",\n" +
+                    "\t\t\t\t\"qty\": \"2\",\n" +
+                    "\t\t\t\t\"amount\": \"200\",\n" +
+                    "\t\t\t\t\"forwarder\": \"达运\",\n" +
+                    "\t\t\t\t\"matNum\": \"0101020400001\",\n" +
+                    "\t\t\t\t\"matName\": \"巴西球团矿\"\n" +
+                    "\t\t\t}\n" +
+                    "\n" +
+                    "\t\t]\n" +
+                    "\t},\n" +
+                    "\t\"context\": {\n" +
+                    "\t\t\"logError\": true,\n" +
+                    "\t\t\"logData\": true\n" +
+                    "\t},\n" +
+                    "\t\"login\": {\n" +
+                    "\t\t\"password\": \"kduser\",\n" +
+                    "\t\t\"dcName\": \"D001\",\n" +
+                    "\t\t\"dbType\": \"0\",\n" +
+                    "\t\t\"userName\": \"user\"\n" +
+                    "\t},\n" +
+                    "\t\"command\": \"savePayOtherBill\"\n" +
+                    "\n" +
+                    "}";
+            String res = locator.getWSFaceFacade().invokeJson(json);
+            JSONObject request = JSON.parseObject(res);
+            String output = request.getString("output");
+            System.out.println(output);
+//            String outResult = FaceEncryptUtil.AES_Decrypt(output, "FXXT");
+//            System.out.println(res);//调用接口后返回的结果数据
+//            System.out.println(outResult);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+
+    }
+
+}

+ 93 - 0
src/main/java/com/steerinfo/dil/wsdl/TestEasUtil.java

@@ -0,0 +1,93 @@
+package com.steerinfo.dil.wsdl;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import com.steerinfo.dil.util.EASUtil;
+
+import java.util.Map;
+
+/**
+ * @Description:
+ * @Author:HuJianGuo
+ * @GreateTime:2021/11/15 19:54
+ * @Version:V2.0
+ */
+public class TestEasUtil {
+
+
+    public static void main(String[] args) {
+        com.steerinfo.dil.wsdl.ServiceInfo service = new ServiceInfo("user", "kduser", "eas", "D001", "L2", 1);
+        service.setServername("172.16.62.243" , "56898");
+        long startT = System.currentTimeMillis();
+        try {
+            String result = null;
+            WSFaceFacadeSrvProxyServiceLocator locator = new WSFaceFacadeSrvProxyServiceLocator();
+            // 这边是map,将map封装后转为json
+            String json ="{\n" +
+                    "\n" +
+                    "\t\"input\": {\n" +
+                    "\t\t\"head\": {\n" +
+                    "\t\t\t\"billNum\": \"9999999\",\n" +
+                    "\t\t\t\"bizDate\": \"2021-11-15\",\n" +
+                    "\t\t\t\"payUnitNum\": \"\",\n" +
+                    "\t\t\t\"payUnitName\": \"\",\n" +
+                    "\t\t\t\"forwordUnitNum\": \"DG001\",\n" +
+                    "\t\t\t\"forwordUnitName\": \"四川省达州钢铁集团有限责任公司\",\n" +
+                    "\t\t\t\"collectionUnitNum\": \"010300304\",\n" +
+                    "\t\t\t\"collectionUnitName\": \"010300304\",\n" +
+                    "\t\t\t\"receivedUnitNum\": \"\",\n" +
+                    "\t\t\t\"receivedUnitName\": \"\",\n" +
+                    "\t\t\t\"allAmount\": 11111\n" +
+                    "\t\t},\n" +
+                    "\t\t\"entries\": [{\n" +
+                    "\t\t\t\t\"detailNum\": \"111\",\n" +
+                    "\t\t\t\t\"detailDate\": \"2021-11-15\",\n" +
+                    "\t\t\t\t\"carNum\": \"001\",\n" +
+                    "\t\t\t\t\"startingPoint\": \"成都\",\n" +
+                    "\t\t\t\t\"endPoint\": \"达州\",\n" +
+                    "\t\t\t\t\"qty\": \"1\",\n" +
+                    "\t\t\t\t\"amount\": \"100\",\n" +
+                    "\t\t\t\t\"forwarder\": \"自提\",\n" +
+                    "\t\t\t\t\"matNum\": \"0101020300002\",\n" +
+                    "\t\t\t\t\"matName\": \"伊朗铁精粉\"\n" +
+                    "\t\t\t},\n" +
+                    "\t\t\t{\n" +
+                    "\t\t\t\t\"detailNum\": \"222\",\n" +
+                    "\t\t\t\t\"detailDate\": \"2021-11-15\",\n" +
+                    "\t\t\t\t\"carNum\": \"002\",\n" +
+                    "\t\t\t\t\"startingPoint\": \"成都\",\n" +
+                    "\t\t\t\t\"endPoint\": \"绵阳\",\n" +
+                    "\t\t\t\t\"qty\": \"2\",\n" +
+                    "\t\t\t\t\"amount\": \"200\",\n" +
+                    "\t\t\t\t\"forwarder\": \"达运\",\n" +
+                    "\t\t\t\t\"matNum\": \"0101020400001\",\n" +
+                    "\t\t\t\t\"matName\": \"巴西球团矿\"\n" +
+                    "\t\t\t}\n" +
+                    "\n" +
+                    "\t\t]\n" +
+                    "\t},\n" +
+                    "\t\"context\": {\n" +
+                    "\t\t\"logError\": true,\n" +
+                    "\t\t\"logData\": true\n" +
+                    "\t},\n" +
+                    "\t\"login\": {\n" +
+                    "\t\t\"password\": \"kduser\",\n" +
+                    "\t\t\"dcName\": \"D001\",\n" +
+                    "\t\t\"dbType\": \"0\",\n" +
+                    "\t\t\"userName\": \"user\"\n" +
+                    "\t},\n" +
+                    "\t\"command\": \"savePayOtherBill\"\n" +
+                    "\n" +
+                    "}";
+            String res = locator.getWSFaceFacade().invokeJson(json);
+            JSONObject request = JSON.parseObject(res);
+            String output = request.getString("output");
+            System.out.println(output);
+//            String outResult = FaceEncryptUtil.AES_Decrypt(output, "FXXT");
+//            System.out.println(res);//调用接口后返回的结果数据
+//            System.out.println(outResult);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+}

+ 583 - 0
src/main/java/com/steerinfo/dil/wsdl/WSFaceFacadeSoapBindingStub.java

@@ -0,0 +1,583 @@
+/**
+ * WSFaceFacadeSoapBindingStub.java
+ *
+ * This file was auto-generated from com.steerinfo.dil.wsdl
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) com.steerinfo.dil.wsdl2Java emitter.
+ */
+
+package com.steerinfo.dil.wsdl;
+
+public class WSFaceFacadeSoapBindingStub extends org.apache.axis.client.Stub implements com.steerinfo.dil.wsdl.WSFaceFacadeSrvProxy {
+    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("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:56898/ormrpc/services/WSFaceFacade", "fault"),
+                      "com.steerinfo.dil.wsdl.WSInvokeException",
+                      new javax.xml.namespace.QName("urn:client.facefacade", "WSInvokeException"), 
+                      true
+                     ));
+        _operations[0] = 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:56898/ormrpc/services/WSFaceFacade", "fault"),
+                      "com.steerinfo.dil.wsdl.WSInvokeException",
+                      new javax.xml.namespace.QName("urn:client.facefacade", "WSInvokeException"), 
+                      true
+                     ));
+        _operations[1] = 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:56898/ormrpc/services/WSFaceFacade", "fault"),
+                      "com.steerinfo.dil.wsdl.WSInvokeException",
+                      new javax.xml.namespace.QName("urn:client.facefacade", "WSInvokeException"), 
+                      true
+                     ));
+        _operations[2] = 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:56898/ormrpc/services/WSFaceFacade", "fault"),
+                      "com.steerinfo.dil.wsdl.WSInvokeException",
+                      new javax.xml.namespace.QName("urn:client.facefacade", "WSInvokeException"), 
+                      true
+                     ));
+        _operations[3] = oper;
+
+        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:56898/ormrpc/services/WSFaceFacade", "fault"),
+                      "com.steerinfo.dil.wsdl.WSInvokeException",
+                      new javax.xml.namespace.QName("urn:client.facefacade", "WSInvokeException"), 
+                      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:56898/ormrpc/services/WSFaceFacade", "fault"),
+                      "com.steerinfo.dil.wsdl.WSInvokeException",
+                      new javax.xml.namespace.QName("urn:client.facefacade", "WSInvokeException"), 
+                      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:56898/ormrpc/services/WSFaceFacade", "fault"),
+                      "com.steerinfo.dil.wsdl.WSInvokeException",
+                      new javax.xml.namespace.QName("urn:client.facefacade", "WSInvokeException"), 
+                      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:56898/ormrpc/services/WSFaceFacade", "fault"),
+                      "com.steerinfo.dil.wsdl.WSInvokeException",
+                      new javax.xml.namespace.QName("urn:client.facefacade", "WSInvokeException"), 
+                      true
+                     ));
+        _operations[7] = oper;
+
+    }
+
+    public WSFaceFacadeSoapBindingStub() throws org.apache.axis.AxisFault {
+         this(null);
+    }
+
+    public WSFaceFacadeSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
+         this(service);
+         super.cachedEndpoint = endpointURL;
+    }
+
+    public WSFaceFacadeSoapBindingStub(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", "WSInvokeException");
+            cachedSerQNames.add(qName);
+            cls = com.steerinfo.dil.wsdl.WSInvokeException.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 invokeJson(String strRequest) throws java.rmi.RemoteException, com.steerinfo.dil.wsdl.WSInvokeException {
+        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", "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 com.steerinfo.dil.wsdl.WSInvokeException) {
+              throw (com.steerinfo.dil.wsdl.WSInvokeException) axisFaultException.detail;
+         }
+   }
+  throw axisFaultException;
+}
+    }
+
+    public String invokeXML(String strRequest) throws java.rmi.RemoteException, com.steerinfo.dil.wsdl.WSInvokeException {
+        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", "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 com.steerinfo.dil.wsdl.WSInvokeException) {
+              throw (com.steerinfo.dil.wsdl.WSInvokeException) axisFaultException.detail;
+         }
+   }
+  throw axisFaultException;
+}
+    }
+
+    public String thirdJson(String strRequest) throws java.rmi.RemoteException, com.steerinfo.dil.wsdl.WSInvokeException {
+        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", "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 com.steerinfo.dil.wsdl.WSInvokeException) {
+              throw (com.steerinfo.dil.wsdl.WSInvokeException) axisFaultException.detail;
+         }
+   }
+  throw axisFaultException;
+}
+    }
+
+    public String thirdXML(String strRequest) throws java.rmi.RemoteException, com.steerinfo.dil.wsdl.WSInvokeException {
+        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", "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 com.steerinfo.dil.wsdl.WSInvokeException) {
+              throw (com.steerinfo.dil.wsdl.WSInvokeException) axisFaultException.detail;
+         }
+   }
+  throw axisFaultException;
+}
+    }
+
+    public String writeFileJson(String request, byte[] fileData) throws java.rmi.RemoteException, com.steerinfo.dil.wsdl.WSInvokeException {
+        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", "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 com.steerinfo.dil.wsdl.WSInvokeException) {
+              throw (com.steerinfo.dil.wsdl.WSInvokeException) axisFaultException.detail;
+         }
+   }
+  throw axisFaultException;
+}
+    }
+
+    public byte[] readFileJson(String request) throws java.rmi.RemoteException, com.steerinfo.dil.wsdl.WSInvokeException {
+        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 com.steerinfo.dil.wsdl.WSInvokeException) {
+              throw (com.steerinfo.dil.wsdl.WSInvokeException) axisFaultException.detail;
+         }
+   }
+  throw axisFaultException;
+}
+    }
+
+    public String writeFileXml(String request, byte[] fileData) throws java.rmi.RemoteException, com.steerinfo.dil.wsdl.WSInvokeException {
+        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 com.steerinfo.dil.wsdl.WSInvokeException) {
+              throw (com.steerinfo.dil.wsdl.WSInvokeException) axisFaultException.detail;
+         }
+   }
+  throw axisFaultException;
+}
+    }
+
+    public byte[] readFileXml(String request) throws java.rmi.RemoteException, com.steerinfo.dil.wsdl.WSInvokeException {
+        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 com.steerinfo.dil.wsdl.WSInvokeException) {
+              throw (com.steerinfo.dil.wsdl.WSInvokeException) axisFaultException.detail;
+         }
+   }
+  throw axisFaultException;
+}
+    }
+
+}

+ 22 - 0
src/main/java/com/steerinfo/dil/wsdl/WSFaceFacadeSrvProxy.java

@@ -0,0 +1,22 @@
+/**
+ * WSFaceFacadeSrvProxy.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.wsdl;
+
+import javax.jws.WebService;
+
+@WebService
+public interface WSFaceFacadeSrvProxy extends java.rmi.Remote {
+    public String invokeJson(String strRequest) throws java.rmi.RemoteException, com.steerinfo.dil.wsdl.WSInvokeException;
+    public String invokeXML(String strRequest) throws java.rmi.RemoteException, com.steerinfo.dil.wsdl.WSInvokeException;
+    public String thirdJson(String strRequest) throws java.rmi.RemoteException, com.steerinfo.dil.wsdl.WSInvokeException;
+    public String thirdXML(String strRequest) throws java.rmi.RemoteException, com.steerinfo.dil.wsdl.WSInvokeException;
+    public String writeFileJson(String request, byte[] fileData) throws java.rmi.RemoteException, com.steerinfo.dil.wsdl.WSInvokeException;
+    public byte[] readFileJson(String request) throws java.rmi.RemoteException, com.steerinfo.dil.wsdl.WSInvokeException;
+    public String writeFileXml(String request, byte[] fileData) throws java.rmi.RemoteException, com.steerinfo.dil.wsdl.WSInvokeException;
+    public byte[] readFileXml(String request) throws java.rmi.RemoteException, com.steerinfo.dil.wsdl.WSInvokeException;
+}

+ 16 - 0
src/main/java/com/steerinfo/dil/wsdl/WSFaceFacadeSrvProxyService.java

@@ -0,0 +1,16 @@
+/**
+ * WSFaceFacadeSrvProxyService.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.wsdl;
+
+public interface WSFaceFacadeSrvProxyService extends javax.xml.rpc.Service {
+    public String getWSFaceFacadeAddress();
+
+    public com.steerinfo.dil.wsdl.WSFaceFacadeSrvProxy getWSFaceFacade() throws javax.xml.rpc.ServiceException;
+
+    public com.steerinfo.dil.wsdl.WSFaceFacadeSrvProxy getWSFaceFacade(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;
+}

+ 142 - 0
src/main/java/com/steerinfo/dil/wsdl/WSFaceFacadeSrvProxyServiceLocator.java

@@ -0,0 +1,142 @@
+/**
+ * WSFaceFacadeSrvProxyServiceLocator.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.wsdl;
+
+public class WSFaceFacadeSrvProxyServiceLocator extends org.apache.axis.client.Service implements com.steerinfo.dil.wsdl.WSFaceFacadeSrvProxyService {
+
+    public WSFaceFacadeSrvProxyServiceLocator() {
+    }
+
+
+    public WSFaceFacadeSrvProxyServiceLocator(org.apache.axis.EngineConfiguration config) {
+        super(config);
+    }
+
+    public WSFaceFacadeSrvProxyServiceLocator(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:56898/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 com.steerinfo.dil.wsdl.WSFaceFacadeSrvProxy 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 com.steerinfo.dil.wsdl.WSFaceFacadeSrvProxy getWSFaceFacade(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
+        try {
+            com.steerinfo.dil.wsdl.WSFaceFacadeSoapBindingStub _stub = new com.steerinfo.dil.wsdl.WSFaceFacadeSoapBindingStub(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 (com.steerinfo.dil.wsdl.WSFaceFacadeSrvProxy.class.isAssignableFrom(serviceEndpointInterface)) {
+                com.steerinfo.dil.wsdl.WSFaceFacadeSoapBindingStub _stub = new com.steerinfo.dil.wsdl.WSFaceFacadeSoapBindingStub(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:56898/ormrpc/services/WSFaceFacade", "WSFaceFacadeSrvProxyService");
+    }
+
+    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:56898/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/wsdl/WSInvokeException.java

@@ -0,0 +1,87 @@
+/**
+ * WSInvokeException.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.wsdl;
+
+public class WSInvokeException  extends org.apache.axis.AxisFault  implements java.io.Serializable {
+    public WSInvokeException() {
+    }
+
+    private Object __equalsCalc = null;
+    public synchronized boolean equals(Object obj) {
+        if (!(obj instanceof WSInvokeException)) return false;
+        WSInvokeException other = (WSInvokeException) 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(WSInvokeException.class, true);
+
+    static {
+        typeDesc.setXmlType(new javax.xml.namespace.QName("urn:client.facefacade", "WSInvokeException"));
+    }
+
+    /**
+     * 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);
+    }
+}

+ 0 - 33
src/main/java/com/steerinfo/dil/wsdl/WsdlSoapTest.java

@@ -1,33 +0,0 @@
-package com.steerinfo.dil.wsdl;
-
-import java.io.IOException;
-
-/**
- * @Description:
- * @Author:HuJianGuo
- * @GreateTime:2021/11/13 17:31
- * @Version:V2.0
- */
-public class WsdlSoapTest {
-
-    public static void main(String args[]) {
-        // TODO Auto-generated method stub
-        StringBuffer sendSoapString = new StringBuffer();
-        sendSoapString.append("<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:tes=\"http://test03/\">");
-        sendSoapString.append("   <soapenv:Header/>");
-        sendSoapString.append("   <soapenv:Body>");
-        sendSoapString.append("      <tes:invokeJsonRequest>");
-        sendSoapString.append("         <arg0>66</arg0>");
-        sendSoapString.append("         <arg1>33</arg1>");
-        sendSoapString.append("      </tes:invokeJsonRequest>");
-        sendSoapString.append("   </soapenv:Body>");
-        sendSoapString.append("</soapenv:Envelope>");
-        try {
-            String ret= SoapUtil.getWebServiceAndSoap("http://172.16.62.243:56898/ormrpc/services/WSFaceFacade?wsdl","invokeJson","invokeJsonRequest", sendSoapString);
-            System.out.println(ret);
-        } catch (IOException e) {
-            // TODO Auto-generated catch block
-            e.printStackTrace();
-        }
-    }
-}

+ 2 - 1
src/main/resources/com/steerinfo/dil/mapper/BmsportHandlingFeeMapper.xml

@@ -455,7 +455,8 @@
     <select id="getOtherMessage" parameterType="DECIMAL" resultType="java.util.Map">
         SELECT RS.SHIPPER_NAME             AS "payUnitName",
                RS.SHIPPER_NAME             AS "receivedUnitName",
-               RSU.SUPPLIER_DUTY_PARAGRAPH AS "forwordUnitNum"
+               RSU.SUPPLIER_DUTY_PARAGRAPH AS "forwordUnitNum",
+               RSU.SUPPLIER_NAME           AS "forwardUnitName"
         FROM BMSPORT_HANDLING_FEE BHF
                  LEFT JOIN DIL_BATCH DB
                            ON DB.RESULT_FOREIGN_SHIP_NAME = BHF.FEE_FOREIGN_SHIP_NAME

+ 3 - 1
src/main/resources/com/steerinfo/dil/mapper/BmsshipStatementMapper.xml

@@ -429,7 +429,8 @@
     <select id="getLossPaymentUnit" parameterType="DECIMAL" resultType="java.util.Map">
         SELECT RC.CARRIER_NAME            AS "payUnitName",
                RSH.SHIPPER_NAME           AS "collectionUnitName",
-               RS.SUPPLIER_DUTY_PARAGRAPH AS "payUnitNum"
+               RS.SUPPLIER_DUTY_PARAGRAPH AS "forwordUnitNum",
+               RS.SUPPLIER_NAME           AS "forwordUnitName"
         FROM BMSSHIP_STATEMENT BS
                  LEFT JOIN RMS_CARRIER RC
                            ON RC.CARRIER_ID = BS.STATEMENT_SHIPPER_ID
@@ -447,6 +448,7 @@
     <!-- 水运费发货单位和收款单位 -->
     <select id="getShipOtherMessage" parameterType="DECIMAL" resultType="java.util.Map">
         SELECT RS.SUPPLIER_DUTY_PARAGRAPH AS "forwordUnitNum",
+               RS.SUPPLIER_NAME           AS "forwordUnitName",
                RP.PORT_NAME               AS "collectionUnitName"
         FROM BMSSHIP_DETAILS_STATEMENT BDS
                  LEFT JOIN BMSSHIP_DETAILS_ORDER BDO

+ 2 - 1
src/main/resources/com/steerinfo/dil/mapper/BmstrainStatementMapper.xml

@@ -361,7 +361,8 @@
     </select>
 
     <select id="getCarrierAndReceiver" parameterType="DECIMAL" resultType="java.util.Map">
-        SELECT RSU.SUPPLIER_DUTY_PARAGRAPH AS "forwordUnitNum"
+        SELECT RSU.SUPPLIER_DUTY_PARAGRAPH AS "forwordUnitNum",
+               RSU.SUPPLIER_NAME           AS "forwordUnitName"
         FROM BMSTRAIN_DETAILS_STATEMENT BDS
                  LEFT JOIN BMSTRAIN_DETAILS_ORDER BDO
                            ON BDS.DETAILS_ID = BDO.DETAILS_ID

+ 2 - 1
src/main/resources/com/steerinfo/dil/mapper/BmstruckDetailsOrderMapper.xml

@@ -501,7 +501,8 @@
         SELECT RS.SHIPPER_NAME             AS "receivedUnitName",
                RCR.CARRIER_NAME            AS "collectionUnitName",
                RS.SHIPPER_NAME             AS "payUnitName",
-               RSU.SUPPLIER_DUTY_PARAGRAPH AS "forwordUnitNum"
+               RSU.SUPPLIER_DUTY_PARAGRAPH AS "forwordUnitNum",
+               RSU.SUPPLIER_NAME           AS "forwordUnitName"
         FROM BMSTRUCK_DETAILS_ORDER BDO
                  LEFT JOIN AMS_PURCHASE_ORDER APO
                            ON APO.PURCHASE_ORDER_ID = BDO.PURCHASE_ORDER_ID