数据库IP url: 127.0.0.1
DataBase: db1
用户名/密码 username/password
表table1结构:
id int (主键)
name varchar
l 请编写以下文件
Spring的xml配置文件,请使用apache的dbcp做连接池管理,需要有事务管理
Hbm文件
<o:p> </o:p>
2) 写一个webservice的WSDL文件<o:p></o:p>
接口定义:<o:p></o:p>
String sayHello(String name,String age)<o:p></o:p>
<o:p> </o:p>
l 请编写WSDL文件<o:p></o:p>
l 请说明用什么工具生成该文件<o:p></o:p>
(提示:不限制使用的工具)<o:p></o:p>
<o:p> </o:p>
3) 根据xml schema生成xml<o:p></o:p>
<xs:schema xmlns="http://mydomain.com/myApp" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetnamespace="http://mydomain.com/myApp" elementformdefault="qualified" attributeformdefault="unqualified"><o:p>
- xml version="1.0" encoding="UTF-8"?>
- <xs:schema xmlns="http://mydomain.com/myApp" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://mydomain.com/myApp" elementFormDefault="qualified" attributeFormDefault="unqualified">
- <xs:element name="e1">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="e11" type="xs:int"/>
- <xs:element name="e12">
- <xs:complexType>
- <xs:attribute name="e121" type="xs:string" use="required"/>
- <xs:attribute name="e122" type="xs:long"/>
- xs:complexType>
- xs:element>
- xs:sequence>
- xs:complexType>
- xs:element>
- xs:schema>
请用xmlBean生成jar包,并编写一个程序生成一个xml文件,其中e11=11 e121=”e<st1:chmetcnv tcsc="0" w:st="on" unitname="”" sourcevalue="121" numbertype="1" negative="False" hasspace="False">121”</st1:chmetcnv>。<o:p></o:p>
l 请给出用XmlBean生成该jar包的命令。<o:p></o:p>
l 请写出程序<o:p></o:p>
(提示:可使用apache也可以使用WebLogic的XmlBean)<o:p></o:p>
<o:p> </o:p>
4) 写程序模拟通过web界面登录mail.people.com.cn。并通过web界面获得收件箱第一页的邮件列表。<o:p></o:p>
入口参数:<o:p></o:p>
用户名 / 密码 <o:p></o:p>
l 请写出程序,输出邮件标题列表<o:p></o:p>
(提示:mail.people.com.cn登录就是普通的http方式,也没有图片验证码。注意是通过web登录,不是通过pop3收邮件)<o:p></o:p>
<o:p> </o:p>
5) 写程序用pop3收取gmail的邮件<o:p></o:p>
入口参数:<o:p></o:p>
用户名 / 密码<o:p></o:p>
做一个线程,每15分钟检查一次邮箱,收取邮箱的邮件,并解码后将标题显示出来<o:p></o:p>
l 请写出程序<o:p></o:p>
(提示:gmail的pop3使用SSL方式,网上有完整可运行的源程序。注意是每15分钟,不是隔15分钟)<o:p></o:p>
</o:p></xs:schema><o:p></o:p>