易截截图软件、单文件、免安装、纯绿色、仅160KB

java web service 开发 具体实例

以一个工作中编写的安全域信息同步为例进行描述;
安全域信息同步其实就是一个XML文件的传输,WEB SERVICE 本质上就是通过XML进行数据的传输.
传输的XML格式如下:
  <?xml version="1.0" encoding="UTF-8" ?>
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
- <SOAP-ENV:Body>
- <simota:SynSecurityDomain xmlns:simota="http://www.chinamobile.com">
  <simota:SeqNum>1111</simota:SeqNum>
  <simota:SessionID>1111</simota:SessionID>
  <simota:SynType>01</simota:SynType>
- <simota:SecurityDomain>
  <simota:AppAID>123456789</simota:AppAID>
  <simota:InstallParams>222222</simota:InstallParams>
  <simota:MinAppSize>33</simota:MinAppSize>
  <simota:ManageMaxSize>44</simota:ManageMaxSize>
  <simota:ManageMinSize>55</simota:ManageMinSize>
  <simota:DomainType>66</simota:DomainType>
  <simota:DeleteRule>77</simota:DeleteRule>
  <simota:SIN>8</simota:SIN>
  <simota:TAR>99</simota:TAR>
  </simota:SecurityDomain>
  </simota:SynSecurityDomain>
  </SOAP-ENV:Body>
  </SOAP-ENV:Envelope>
 
 
根据该XML需要编写响应的解析类来接收XML文件传输过来的数据:
解析类如下:
package com.watchdata.raadtinterface.common.syn;
 
import org.jdom.Element;
import org.jdom.Namespace;
import org.apache.commons.logging.*;
import com.watchdata.raadtinterface.common.*;
 
public class SynSecurityDomainRequest
    implements BaseMsg {
  public SynSecurityDomainRequest() {
  }
 
  private String seqNum;
  private String sessionID;
  private String synType;
  private SecurityDomainBean securityDomain;
 
  /**
   *


相关文档:

0元月薪 北京求职 Java开发

  在北京呆了一个月多了,为了生存,笔记本电脑也贱卖了,不知道工作这么难找。
 
  一个正经的面试也没有。 
  我从07年毕业已经浪费2年时间了,我愿意用半年的0薪酬来换取我入行开发;
  希望北京有公司提供让我实现自我价值的平台。
  如果您对我的能力有疑问,沟通可以了解 ......

Java连接数据库的方法

Java连接数据库的方法
注:转于http://www.newasp.net/tech/java/15826.html
JAVA连接数据库主要有两种方式:
一是用JDBC-ODBC桥来连接
二是用相关厂商提供的相应驱动程序来连接
用JDBC-ODBC桥来连接
JDBC-ODBC桥接器是用JdbcOdbc.Class和一个用于访问ODBC驱动程序的本地库实现的。对于WINDOWS平台,该本地库是一个动 ......

JAVA BOT程序模拟人类用户填写表单 并 发送

仿真表单:BOT程序模拟人类用户填写表单 并 发送
抓取表单:
HTTPSocket http = new HTTPSocket();
SocketFactory.setProxyHost("openproxy.huawei.com");
SocketFactory.setProxyPort(8080);
HTMLPage page = new HTMLPage(http);
page.open("http://passport.csdn.net/UserLogin.aspx", null);
Vector vec = page. ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号