欢迎来到天天文库
浏览记录
ID:44474864
大小:165.18 KB
页数:5页
时间:2019-10-22
《录入界面的创建》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、身份证15-18位转换服务系统一一录入界面一•问题陈述某一个公司提供Webservice给它的顾客,Webservice的主要内容是身份证15到18转换服务;某社会保障信息管理系统的子模块,要应用这项Webserviceo工作人员从Webservice客户端调用WebService,输入参保人员的15位身份证,计算岀18位身份证号;同时,显示该参保人的出生口期和性别-、任务单1创建工程2创建Web模块3确定WebService基于JavaBean向外提供服务4创建WebService服务器配置5导出JavaBean作为WebServic6运行WebService7测试WebSer
2、vice二、任务实施过程1.Tomcat5.0启动,Axis管理控制界面I'I
3、http://localhost:8080>1dCardConvertWeb>1ndex.htmlJBuilderApacheAxisAdminConsoleWelcometotheJBuilderApacheAxisAdminConsolebasedonAxis1.2First,configuretheprojectforwebservicesusingtheAxisWebServicesServerConfigurationwizard(File
4、New
5、WebServices).Buildand
6、runtheprojectwiththeWebServicesServerruntimeconfigurationtoautomaticallydeploythearchivestotheAxisserver.AfteryouVedeployedawebservice,youcanusetheAxisAdminConsoletoexecuteavarietyoftasks.Chooseoneofthefollowlnglinks:*Viewthelistofdeployedwebservices•Validatethelocalinstallation'sconfiguratio
7、n[Ifthisdoesnlwork,seeVQlidatinaAxis.l*AdministerAxis[DisabledbydefaultTorsecurityreasons.SeeEnabllnaAxisadmirHstratlcm.】♦SOAPtvlonitor[Disabledbydefaultforsecurityreasons.SeeE门ablinaSOAPmordtorincifeatures.】*VisittheApacheAxisHomePag©•VisittheApacheWiki1.查看Axis服务器上发布的Webservice;匾[http:/>1oca
8、lhost:8080/ldCardConvertWebXservletXAxisServletAndnow...SomeServices*AdminServicefws⑻oAdminService*VersionogetVerslon*IdCardConvertBeanfwsd}》ogetldCardogetBirthDayogetsex1、代码设计(伪代码)publicStringgetldCard(Strings){idcard=idcard・substring(0,6)+"19〃+idcard.substring(6,15);for(inti二0;i〈17;i++){int
9、N+=Tnteger.parse!nt(idcard.substring(i,i+1))*v_List[16-i];}intR=intN%ll;idcard=idcard+tailchars.substring(intR,intR+1);returnidcard;三、独立实践:要求:创建WebService客户端a)创建一个图形用户界而的Application;b)完成Application的界面设计;c)完成按钮单击事件响应程序;要求学员自己动手编码,在编码的过稈中解答学员提出的问题程序设计:以下是参考程序:•••idcardconvert.export,generated.I
10、dCardConvertBeanSoapBindingStubbinding;trytbinding=(idcardconvert・export.generated.IdCardConvertBeanSoapBindingStub)newidcardconvert.export,generated.IdCardConvertBeanServiceLocator().getTdCardConvertBean();}•••binding.setTimeout(60000);try{j
此文档下载收益归作者所有