WSDL数据处理
来源:互联网 发布:php编辑器 编辑:程序博客网 时间:2024/06/15 00:50
import com.seeyon.v3x.dee.util.DocumentUtil;
import com.seeyon.v3x.dee.TransformContext;
import com.seeyon.v3x.dee.TransformFactory;
import com.seeyon.v3x.dee.datasource.*;
import java.net.URLDecoder;
import java.net.URLEncoder;
String formData = null;
formData = document.toString();
//System.out.println("1111111");
//System.out.println(formData);
String resource = "";
Document documentFormData = null;
if (formData != null) {
documentFormData = (new XMLDataSource(formData)).parse();
String OAID = documentFormData.getRootElement().getChildren().get(0).getChildren().get(0).getChild("OAID").getValue();
//System.out.println("22222222");
//System.out.println(eno);
String EmpNo = documentFormData.getRootElement().getChildren().get(0).getChildren().get(0).getChild("EmpNo").getValue();
String BeginDate = documentFormData.getRootElement().getChildren().get(0).getChildren().get(0).getChild("BeginDate").getValue();
String EndDate = documentFormData.getRootElement().getChildren().get(0).getChildren().get(0).getChild("EndDate").getValue();
String EvectionAddr = documentFormData.getRootElement().getChildren().get(0).getChildren().get(0).getChild("EvectionAddr").getValue();
String WhyEvection = documentFormData.getRootElement().getChildren().get(0).getChildren().get(0).getChild("WhyEvection").getValue();
String IsHoliPRI = documentFormData.getRootElement().getChildren().get(0).getChildren().get(0).getChild("IsHoliPRI").getValue();
if(EvectionAddr==null){
EvectionAddr="无";
}
if(WhyEvection==null){
WhyEvection="无";
}
EvectionAddr=URLEncoder.encode(EvectionAddr, "UTF-8");
WhyEvection=URLEncoder.encode(WhyEvection, "UTF-8");
resource ="http://10.74.152.20:18010/RESTService/SaveEvectionBill?OAID="+OAID+"&EmpNo="+EmpNo+"&BeginDate="+BeginDate+"&EndDate="+EndDate+"&BeginTime=&EndTime=&WhyEvection="+WhyEvection+"&EvectionAddr="+EvectionAddr+"&IsNoDaCard=1&IsHoliPRI="+IsHoliPRI+"&Flag=1&TimeRange=1&UserID=&UserName=&IsCommitConfirmAtOnce=0";
//System.out.println("======================");
System.out.println(resource);
}
document.getContext().getParameters().add("resource",resource);
//System.out.println("3333333");
//println resource;
import com.seeyon.v3x.dee.TransformContext;
import com.seeyon.v3x.dee.TransformFactory;
import com.seeyon.v3x.dee.datasource.*;
import java.net.URLDecoder;
import java.net.URLEncoder;
String formData = null;
formData = document.toString();
//System.out.println("1111111");
//System.out.println(formData);
String resource = "";
Document documentFormData = null;
if (formData != null) {
documentFormData = (new XMLDataSource(formData)).parse();
String OAID = documentFormData.getRootElement().getChildren().get(0).getChildren().get(0).getChild("OAID").getValue();
//System.out.println("22222222");
//System.out.println(eno);
String EmpNo = documentFormData.getRootElement().getChildren().get(0).getChildren().get(0).getChild("EmpNo").getValue();
String BeginDate = documentFormData.getRootElement().getChildren().get(0).getChildren().get(0).getChild("BeginDate").getValue();
String EndDate = documentFormData.getRootElement().getChildren().get(0).getChildren().get(0).getChild("EndDate").getValue();
String EvectionAddr = documentFormData.getRootElement().getChildren().get(0).getChildren().get(0).getChild("EvectionAddr").getValue();
String WhyEvection = documentFormData.getRootElement().getChildren().get(0).getChildren().get(0).getChild("WhyEvection").getValue();
String IsHoliPRI = documentFormData.getRootElement().getChildren().get(0).getChildren().get(0).getChild("IsHoliPRI").getValue();
if(EvectionAddr==null){
EvectionAddr="无";
}
if(WhyEvection==null){
WhyEvection="无";
}
EvectionAddr=URLEncoder.encode(EvectionAddr, "UTF-8");
WhyEvection=URLEncoder.encode(WhyEvection, "UTF-8");
resource ="http://10.74.152.20:18010/RESTService/SaveEvectionBill?OAID="+OAID+"&EmpNo="+EmpNo+"&BeginDate="+BeginDate+"&EndDate="+EndDate+"&BeginTime=&EndTime=&WhyEvection="+WhyEvection+"&EvectionAddr="+EvectionAddr+"&IsNoDaCard=1&IsHoliPRI="+IsHoliPRI+"&Flag=1&TimeRange=1&UserID=&UserName=&IsCommitConfirmAtOnce=0";
//System.out.println("======================");
System.out.println(resource);
}
document.getContext().getParameters().add("resource",resource);
//System.out.println("3333333");
//println resource;
1 0
- WSDL数据处理
- WSDL
- wsdl
- wsdl
- WSDL
- WSDL
- wsdl
- WSDL
- WSDL
- WSDL
- WSDL
- WSDL
- wsdl
- WSDL
- WSDL
- WSDL
- WSDL
- wsdl
- 常见算法
- 重装系统后克隆机静态IP设置问题
- dubbo admin 和monitor的安装(二)
- LinuxProbe
- Repo(google git-repo)使用实例
- WSDL数据处理
- [jQuery知识]jQuery之知识五-DOM节点操作
- javaSE_8系列博客——Java语言的特性(三)--类和对象(7)--给方法或者构造器传输信息
- Anaconda多环境多版本python配置指导
- 史上首次!微软为中东土豪迪拜设计专用字体
- FFT模板(迭代/递归)
- 找回密码的思路
- 常用的linux命令和工具
- 缓冲区