`
showcup
  • 浏览: 23952 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论
文章列表
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setNamespaceAware(true);//开启命名空间 DocumentBuilder builder = factory.newDocumentBuilder(); Document doc = builder.parse(new InputSource(new StringReader(result.toString())));//用xml串构造源 System.out. ...
SOAPConnectionFactory factory = SOAPConnectionFactory.newInstance(); SOAPConnection con = factory.createConnection(); SOAPMessage request = MessageFactory.newInstance(SOAPConstants.SOAP_1_1_PROTOCOL).createMessage(); request.getSOAPHeader().detachNode(); SOAPBody ...
protected ResponseMessage httpProtocol_http(String businessServiceName,RequestMessage message) throws Exception {         String url_str = protocol + ":" + "//" + host + ":" + port + uri;         logger.debug("asip服务地址:" + url_str);         URL url = new ...
SAAJ是一个可是用户利用java来创建,读或修改SOAP消息的API,SAAJ包含了对SOAP的 Envelop元素,Body元素,Fault元素以及XML命名空间,元素,属性,文本注释和MIME 附件建模的类和接口。SAAJ是一个空的类,有点类似JDBC。又供应商实现。 ...
package com.softeem.jbs.lesson4; import java.util.Random; /** * 排序测试类 * * 排序算法的分类如下: * 1.插入排序(直接插入排序、折半插入排序、希尔排序); * 2.交换排序(冒泡泡排序、快速排序); * 3.选择排序(直接选择排序、堆排序); * 4.归并排序; * 5.基数排序。 * * 关于排序方法的选择: * (1)若n较小(如n≤50),可采用直接插入或直接选择排序。 *  当记录规模较小时,直接插入排序较好;否则因为直接选择移动的记录数少于直接 ...
由于J2ME中的String没有replace(String ,String)方法,要对xml进行转义很难通过s.replace("&","&amp;");无奈之下自己实现 //转义    public static String escapeXml(String s)    {       StringBuffer f = new StringBuffer();       char[] arr = s.toCharArray();       for (int i = 0; i < arr.length; i++)       { ...
http://yesir.iteye.com/blog/275178 http://uwa.qooyee.com/ http://dropthings.omaralzabir.com/ www.codeplex.com/dropthings
今天有用到xml,突然一下发现不怎么记得dom4j的api了,以前一个项目都是什么XML RPC架起来的! 记下几片代码给自己提个醒: 解析xml: Document doc=DocumentHelper.parseText(xml); Element rootEle=doc.getRootElement();   ...... 创建xml: Document doc=DocumentHelper.createDocument(); Element rootEle=DocumentHelper.createElement ...
一个使用apache的Axis发布了WebService的Web应用欲部署到Tomcat上去,竟然有这种莫名其妙的错误信息: 信息: The listener "org.apache.axis.transport.http.AxisHTTPSessionListener" is already configured for this context. The duplicate definition has been ignored. 言下之意说AxisHTTPSessionListener已经配置过了,已经被忽略后面紧接着 严重: Error configuring app ...
1.第一步创建一个web工程,把下载的axis中的lib全部放到myproject/WEB-INF/lib中, 搞一个server-config.wsdd的文件到myproject/WEB-INF/下(网上下载,论坛复制,怎么样都成),还需在myproject/WEB-INF/web.xml文件中配置哈axis,具体内容可以从down下来的axis的webapps中原样复制过来 2.编写deploy.wsdd文件,内容格式如: <?xml version="1.0" encoding="UTF-8"?> <deployment xmln ...
公司项目中强制使用存储过程,顺势学习下如何在程序中调用过程,借javaeye点地方保存点代码片段.......... 创建过程: --创建一张测试的表 create table t1(a number,b number ,c number,d number); --创建一个包定义游标类型 create or replace package types as type cursorType is ref cursor; end; --创建存储过程 create or replace procedure getemps( io_cursor in out types.cursorType) as ...
在linux平台中的eclipseIDE中运行如下代码: public static void main(String[] args) throws IOException { System.out.println("please input register name:"); BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); System.out.println(reader.readLine()); } 然后在在eclipse的 ...
当然学习都是从经典helloword开始,这个DWR的学习过程也不例外,首先我从网上download了相关的文件2.0.5通知一下热衷DWR的人们现在的新版本是2.0.5,然后到网上搜索一个入门的例子,避免不了的,就是helloword,然后我根据步骤一步步来,敲了 ...
与人为善,与已为善
基本情况 各位考官好,我叫面试求败,今年23岁,湖南人,大专学历,去年毕业于xx学院,计算机科学技术专业,系统的学过计算机原理,数据结构,软件工程等课程。 突出特长 无论在求学道路上和工作过程中,我一直坚 ...
Global site tag (gtag.js) - Google Analytics