Commit e6ee2c5f authored by Quxl's avatar Quxl

x

parent e1e14bc6
package test;
import java.io.File;
import com.egolm.sso.services.material_master.Z_MT_SD_001_MATERIAL_MASTER;
import com.egolm.sso.util.DateUtil;
import com.egolm.sso.util.StringUtil;
import com.egolm.sso.util.XMLUtil;
public class MaterialMasterServiceErrorTest {
// public static void main(String[] args) throws Exception {
// String wsdlLocation = "http://10.204.15.9:8080/api/services/material_master?wsdl";
// String namespace = "http://material_master.sso.egolm.com";
// String serviceName = "MaterialMasterService";
// MaterialMasterService service = ServiceFactory.create(MaterialMasterService.class, wsdlLocation, namespace, serviceName);
// File folder = new File("C:\\Users\\Quxl\\Desktop\\error");
// File[] files = folder.listFiles();
// for(File file : files) {
// String XML = StringUtil.readText(file);
// Z_MT_SD_001_MATERIAL_MASTER Z_MT_SD_001_MATERIAL_MASTER = XMLUtil.toBeanByJxab(XML, Z_MT_SD_001_MATERIAL_MASTER.class);
// Z_MT_SD_001_MATERIAL_MASTER.getRECORD().getHEADER_SENDING().getDATUM();
// service.execute(Z_MT_SD_001_MATERIAL_MASTER);
// }
// }
public static void main(String[] args) throws Exception {
File folder = new File("C:\\Users\\Quxl\\Desktop\\error");
File[] files = folder.listFiles();
for(File file : files) {
try {
System.out.print(file.getName());
String XML = StringUtil.readText(file);
Z_MT_SD_001_MATERIAL_MASTER Z_MT_SD_001_MATERIAL_MASTER = XMLUtil.toBeanByJxab(XML, Z_MT_SD_001_MATERIAL_MASTER.class);
String dateString = Z_MT_SD_001_MATERIAL_MASTER.getRECORD().getHEADER_SENDING().getDATUM();
System.out.println("----------" + DateUtil.parseDate(dateString, DateUtil.FMT_DATE) );
} catch (Exception e) {
e.printStackTrace();
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment