From e37f04c97ef893edce5f3f748398424fa17ffc2a Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期三, 18 九月 2024 10:04:17 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
Source/ExampleIntegratedPushCalled/src/main/java/com/vci/ubcs/example/service/impl/CalledIntegrationServiceImpl.java | 119 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 119 insertions(+), 0 deletions(-)
diff --git a/Source/ExampleIntegratedPushCalled/src/main/java/com/vci/ubcs/example/service/impl/CalledIntegrationServiceImpl.java b/Source/ExampleIntegratedPushCalled/src/main/java/com/vci/ubcs/example/service/impl/CalledIntegrationServiceImpl.java
index 8f42089..e9bb79c 100644
--- a/Source/ExampleIntegratedPushCalled/src/main/java/com/vci/ubcs/example/service/impl/CalledIntegrationServiceImpl.java
+++ b/Source/ExampleIntegratedPushCalled/src/main/java/com/vci/ubcs/example/service/impl/CalledIntegrationServiceImpl.java
@@ -151,6 +151,125 @@
}
/**
+ * 瀵圭紪鐮佺郴缁熺粺涓�鐢宠鎺ュ彛璋冪敤,WebService鏂瑰紡
+ */
+ @Override
+ public void sendApplyCodeByWebServicexml(int frequency) throws MalformedURLException, RemoteException {
+ //浣跨敤sopui鐢熸垚璋冪敤webservice鎺ュ彛鐨勪唬鐮�
+ String dataType = "xml"; //鎴栬�厁ml
+ String dataString = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
+ "<data systemId=\"PDM\">\n" +
+ " <user ip=\"130.31.92.101\" trueName=\"鐜嬬惇\" userName=\"19851584\"/>\n" +
+ " <classifys>\n" +
+ " <classify classCode=\"1025\" fullclsfNamePath=\"\" library=\"10\">\n" +
+ " <sections>\n" +
+ " <section name=\"鍒嗙被\" value=\"1025\"/>\n" +
+ " </sections>\n" +
+ " <objects>\n" +
+ " <object code=\"\" creator=\"19851584\" id=\"2548M16G02\" operate=\"create\" status=\"Released\">\n" +
+ " <prop key=\"partclassification\" text=\"鍒嗙被\" value=\"1025\"/>\n" +
+ " <prop key=\"c6e_drawingNo\" text=\"鍥惧彿\" value=\"2548M16G02\"/>\n" +
+ " <prop key=\"c6e_partClass\" text=\"Part鍒嗙被\" value=\"璁捐闆剁粍浠禱"/>\n" +
+ " <prop key=\"c6e_partName\" text=\"鍚嶇О\" value=\"楂樺帇娑¤疆闈欐瀵嗗皝鍦圽"/>\n" +
+ " <prop key=\"c6e_hash\" text=\"鍝堝笇鐮乗" value=\"/\"/>\n" +
+ " </object>\n" +
+ " <object code=\"\" creator=\"19851584\" id=\"2548M16P06\" operate=\"create\" status=\"Released\">\n" +
+ " <prop key=\"partclassification\" text=\"鍒嗙被\" value=\"1025\"/>\n" +
+ " <prop key=\"c6e_drawingNo\" text=\"鍥惧彿\" value=\"2548M16P06\"/>\n" +
+ " <prop key=\"c6e_partClass\" text=\"Part鍒嗙被\" value=\"璁捐闆剁粍浠禱"/>\n" +
+ " <prop key=\"c6e_partName\" text=\"鍚嶇О\" value=\"娉曞叞鐩榎"/>\n" +
+ " <prop key=\"c6e_hash\" text=\"鍝堝笇鐮乗" value=\"/\"/>\n" +
+ " </object>\n" +
+ " <object code=\"\" creator=\"19851584\" id=\"2548M16P02\" operate=\"create\" status=\"Released\">\n" +
+ " <prop key=\"partclassification\" text=\"鍒嗙被\" value=\"1025\"/>\n" +
+ " <prop key=\"c6e_drawingNo\" text=\"鍥惧彿\" value=\"2548M16P02\"/>\n" +
+ " <prop key=\"c6e_partClass\" text=\"Part鍒嗙被\" value=\"璁捐闆剁粍浠禱"/>\n" +
+ " <prop key=\"c6e_partName\" text=\"鍚嶇О\" value=\"鐒婃帴娉曞叞鐩榎"/>\n" +
+ " <prop key=\"c6e_hash\" text=\"鍝堝笇鐮乗" value=\"/\"/>\n" +
+ " </object>\n" +
+ " <object code=\"\" creator=\"19851584\" id=\"2548M16P05\" operate=\"create\" status=\"Released\">\n" +
+ " <prop key=\"partclassification\" text=\"鍒嗙被\" value=\"1025\"/>\n" +
+ " <prop key=\"c6e_drawingNo\" text=\"鍥惧彿\" value=\"2548M16P05\"/>\n" +
+ " <prop key=\"c6e_partClass\" text=\"Part鍒嗙被\" value=\"璁捐闆剁粍浠禱"/>\n" +
+ " <prop key=\"c6e_partName\" text=\"鍚嶇О\" value=\"闃查缃‐"/>\n" +
+ " <prop key=\"c6e_hash\" text=\"鍝堝笇鐮乗" value=\"/\"/>\n" +
+ " </object>\n" +
+ " <object code=\"\" creator=\"19851584\" id=\"2548M16P03\" operate=\"create\" status=\"Released\">\n" +
+ " <prop key=\"partclassification\" text=\"鍒嗙被\" value=\"1025\"/>\n" +
+ " <prop key=\"c6e_drawingNo\" text=\"鍥惧彿\" value=\"2548M16P03\"/>\n" +
+ " <prop key=\"c6e_partClass\" text=\"Part鍒嗙被\" value=\"璁捐闆剁粍浠禱"/>\n" +
+ " <prop key=\"c6e_partName\" text=\"鍚嶇О\" value=\"灏佷弗铚傜獫\"/>\n" +
+ " <prop key=\"c6e_hash\" text=\"鍝堝笇鐮乗" value=\"/\"/>\n" +
+ " </object>\n" +
+ " <object code=\"\" creator=\"19851584\" id=\"2548M16P04\" operate=\"create\" status=\"Released\">\n" +
+ " <prop key=\"partclassification\" text=\"鍒嗙被\" value=\"1025\"/>\n" +
+ " <prop key=\"c6e_drawingNo\" text=\"鍥惧彿\" value=\"2548M16P04\"/>\n" +
+ " <prop key=\"c6e_partClass\" text=\"Part鍒嗙被\" value=\"璁捐闆剁粍浠禱"/>\n" +
+ " <prop key=\"c6e_partName\" text=\"鍚嶇О\" value=\"铚傜獫灏佷弗杈筡"/>\n" +
+ " <prop key=\"c6e_hash\" text=\"鍝堝笇鐮乗" value=\"/\"/>\n" +
+ " </object>\n" +
+ " <object code=\"\" creator=\"19851584\" id=\"2551M46P01\" operate=\"create\" status=\"Released\">\n" +
+ " <prop key=\"partclassification\" text=\"鍒嗙被\" value=\"1025\"/>\n" +
+ " <prop key=\"c6e_drawingNo\" text=\"鍥惧彿\" value=\"2551M46P01\"/>\n" +
+ " <prop key=\"c6e_partClass\" text=\"Part鍒嗙被\" value=\"璁捐闆剁粍浠禱"/>\n" +
+ " <prop key=\"c6e_partName\" text=\"鍚嶇О\" value=\"澹充綋鍥哄畾鐜痋"/>\n" +
+ " <prop key=\"c6e_hash\" text=\"鍝堝笇鐮乗" value=\"/\"/>\n" +
+ " </object>\n" +
+ " <object code=\"\" creator=\"19851584\" id=\"2552M51G07\" operate=\"create\" status=\"Released\">\n" +
+ " <prop key=\"partclassification\" text=\"鍒嗙被\" value=\"1025\"/>\n" +
+ " <prop key=\"c6e_drawingNo\" text=\"鍥惧彿\" value=\"2552M51G07\"/>\n" +
+ " <prop key=\"c6e_partClass\" text=\"Part鍒嗙被\" value=\"璁捐闆剁粍浠禱"/>\n" +
+ " <prop key=\"c6e_partName\" text=\"鍚嶇О\" value=\"鍘嬫皵鏈烘満鍖e熬閮ㄤ腑蹇冩敮鏋禱"/>\n" +
+ " <prop key=\"c6e_hash\" text=\"鍝堝笇鐮乗" value=\"/\"/>\n" +
+ " </object>\n" +
+ " <object code=\"\" creator=\"19851584\" id=\"2552M51P08\" operate=\"create\" status=\"Released\">\n" +
+ " <prop key=\"partclassification\" text=\"鍒嗙被\" value=\"1025\"/>\n" +
+ " <prop key=\"c6e_drawingNo\" text=\"鍥惧彿\" value=\"2552M51P08\"/>\n" +
+ " <prop key=\"c6e_partClass\" text=\"Part鍒嗙被\" value=\"璁捐闆剁粍浠禱"/>\n" +
+ " <prop key=\"c6e_partName\" text=\"鍚嶇О\" value=\"鍘嬫皵鏈烘満鍖e熬閮ㄤ腑蹇冩敮鏋禱"/>\n" +
+ " <prop key=\"c6e_hash\" text=\"鍝堝笇鐮乗" value=\"/\"/>\n" +
+ " </object>\n" +
+ " <object code=\"\" creator=\"19851584\" id=\"2552M51P02\" operate=\"create\" status=\"Released\">\n" +
+ " <prop key=\"partclassification\" text=\"鍒嗙被\" value=\"1025\"/>\n" +
+ " <prop key=\"c6e_drawingNo\" text=\"鍥惧彿\" value=\"2552M51P02\"/>\n" +
+ " <prop key=\"c6e_partClass\" text=\"Part鍒嗙被\" value=\"璁捐闆剁粍浠禱"/>\n" +
+ " <prop key=\"c6e_partName\" text=\"鍚嶇О\" value=\"鍘嬫皵鏈哄熬閮ㄤ腑蹇冩敮鏋禱"/>\n" +
+ " <prop key=\"c6e_hash\" text=\"鍝堝笇鐮乗" value=\"/\"/>\n" +
+ " </object>\n" +
+ " <object code=\"\" creator=\"19851584\" id=\"4127T52P06\" operate=\"create\" status=\"Released\">\n" +
+ " <prop key=\"partclassification\" text=\"鍒嗙被\" value=\"1025\"/>\n" +
+ " <prop key=\"c6e_drawingNo\" text=\"鍥惧彿\" value=\"4127T52P06\"/>\n" +
+ " <prop key=\"c6e_partClass\" text=\"Part鍒嗙被\" value=\"璁捐闆剁粍浠禱"/>\n" +
+ " <prop key=\"c6e_partName\" text=\"鍚嶇О\" value=\"閿�瀛怽"/>\n" +
+ " <prop key=\"c6e_hash\" text=\"鍝堝笇鐮乗" value=\"/\"/>\n" +
+ " </object>\n" +
+ " </objects>\n" +
+ " </classify>\n" +
+ " <classify classCode=\"1040\" fullclsfNamePath=\"\" library=\"10\">\n" +
+ " <sections>\n" +
+ " <section name=\"鍒嗙被\" value=\"1040\"/>\n" +
+ " </sections>\n" +
+ " <objects>\n" +
+ " <object code=\"\" creator=\"19851584\" id=\"LEAP 1B-ZP1\" operate=\"create\" status=\"Released\">\n" +
+ " <prop key=\"partclassification\" text=\"鍒嗙被\" value=\"1040\"/>\n" +
+ " <prop key=\"c6e_drawingNo\" text=\"鍥惧彿\" value=\"LEAP 1B-ZP1\"/>\n" +
+ " <prop key=\"c6e_partClass\" text=\"Part鍒嗙被\" value=\"鍒堕�犺繃绋嬩欢\"/>\n" +
+ " <prop key=\"c6e_hash\" text=\"鍝堝笇鐮乗" value=\"/\"/>\n" +
+ " <prop key=\"c6e_partName\" text=\"鍚嶇О\" value=\"LEAP 1B鍙戝姩鏈轰氦浠樹欢\"/>\n" +
+ " </object>\n" +
+ " </objects>\n" +
+ " </classify>\n" +
+ " </classifys>\n" +
+ "</data>";
+
+ for (int i = 0; i <= frequency; i++) {
+ String res = universalInterface.applyCode(dataString,dataType);
+ System.out.println("绗�"+i+"娆℃墽琛岋紝杩斿洖缁撴灉锛�"+res);
+ }
+ System.out.println("=================END=======================");
+ }
+
+ /**
* 瀵规爣鍑嗙敵鐮佹帴鍙h皟鐢ㄧず渚嬶細rest鏂瑰紡锛岃皟鐢ㄦ柟寮忓拰缁熶竴鐢崇爜鎺ュ彛娌℃湁鍖哄埆锛屽彧鏄弬鏁颁笂鏈夋墍璋冩暣
*/
public void sendApplyCodeBZByRest(){
--
Gitblit v1.9.3