Get the parameter of webservice xml
来源:互联网 发布:bitcomet端口阻塞问题 编辑:程序博客网 时间:2024/06/06 03:02
{//test1模块处理
Pattern pattern = Pattern.compile("<test1.*?xmlns=.*?>.*?</test1>");
Matcher matcher = pattern.matcher(xmlDataFromServer);
if(matcher.find()) {
//System.out.println("matcher="+matcher.group());
String paraall = matcher.group();
//test过程,返回参数
pattern = Pattern.compile("<s>.*?</s>");
matcher = pattern.matcher(paraall);
String myval="";
if(matcher.find()) {
System.out.println("s="+matcher.group());
myval = matcher.group();
int npos1=myval.indexOf(">");
int npos2=myval.indexOf("</s>");
if(npos1>0&&npos2>0)
{
myval=myval.substring(npos1+1,npos2);
System.out.println("sreal="+myval);
}
}
String ret = " <soap:Envelope/r/n"
+" xmlns:soap=/"http://schemas.xmlsoap.org/soap/envelope//"/r/n"
+" xmlns:xsd=/"http://www.w3.org/2001/XMLSchema/"/r/n"
+" xmlns:xsi=/"http://www.w3.org/2001/XMLSchema-instance/">/r/n"
+" <soap:Body>/r/n"
+" <ns1:orderhadleResponse/r/n"
+" xmlns:ns1=/"http://www.118114ok.com//">/r/n"
+" <ns1:out>"+myval+"</ns1:out>/r/n"
+" </ns1:orderhadleResponse>/r/n"
+" </soap:Body>/r/n"
+" </soap:Envelope>/r/n";
out.println(ret);
return;
}
}
- Get the parameter of webservice xml
- Spring MVC How take the parameter value of a GET HTTP Request in my controller method?
- the parameter of session timeout
- maven--pom.xml错误--CoreException: Could not get the value for parameter compilerId
- how to update config parameter of hadoop mapred-site.xml without restarting the cluster
- The default parameter of python functions
- The value (166) of MAXTRANS parameter ignored.
- Jenkins: Dynamic Choice Parameter get all branch list of git
- Get Request Parameter of a URL on FreeMarker
- The study of parameter of function in Python(20170908)
- get the offset of field
- Get the frame of app
- Get the center of contour
- Does the parameter type of the setter match the return type of the getter?
- Does the parameter type of the setter match the return type of the getter?
- 【错误】Does the parameter type of the setter match the return type of the getter
- BeanCreationException:Does the parameter type of the setter match the return type of the getter
- Does the parameter type of the setter match the return type of the getter? 异常处理
- 用socket获取主机的信息
- How to transfer the data from CSV file to Oracle database use the PL/SQL developer tool
- 测试!
- 安装sqlserver2000的时候安装过某个文件创建挂起的文件操作?处理时最简单的方法
- linux bible 第十四章 Linux核心资源
- Get the parameter of webservice xml
- linux bible 第十三章 处理器
- linux bible 第十二章 模块
- linux bible 第十一章 核心机制
- 2008年10月17日 第一天的博客
- linux bible 第十章 网络
- 单文档多视图的实现
- linux bible 第九章 文件系统
- 判断单链表是否存在环,判断两个链表是否相交问题详解