




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領
文檔簡介
1、eclipse根據(jù)wsdl文件生成webservice客戶端一、 前期準備:11、配置log4j12、log4j使用jar包:23、wsdl使用jar包:2二、 開始生成文件:2一、 前期準備:1、配置log4j沒有配置的場合提示下列的信息(可以不配置):(log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectResourceBundle).log4j:WARN Please initialize the log4j system properly.Error: Missing argume
2、nt to option -p)perties文件內(nèi)容:log4j.rootLogger=info,stdout,R# # Console Appender #log4j.appender.stdout=org.apache.log4j.ConsoleAppenderlog4j.appender.stdout.Target=System.outlog4j.appender.stdout.layout=org.apache.log4j.PatternLayoutlog4j.appender.stdout.layout.ConversionPattern=%XLKV %dyyyy
3、-MM-dd HH:mm:ss,SSS %c %t %L %p - %m%n# # File Appender # log4j.appender.R=org.apache.log4j.DailyRollingFileAppender#log4j.appender.R.File=$WORKDIR/TestWebService/WebRoot/logs/out.log#log4j.appender.R.File=$catalina.home/WebRoot/logs/out.loglog4j.appender.R.File=D:/logs/TestWebService.loglog4j.appen
4、der.R.DatePattern = '.'yyyy-MM-ddlog4j.appender.R.layout=org.apache.log4j.PatternLayoutlog4j.appender.R.layout.ConversionPattern=%XLKV %dyyyy-MM-dd HH:mm:ss,SSS %c %t %L %p - %m%n# # log level# .ibatis=debugmon.jdbc.SimpleDataSource=debugmon.jdbc.ScriptRunner=debug.ibatis.sqlmap.engine.impl.
5、SqlMapClientDelegate=debuglog4j.logger.java.sql.Connection=debuglog4j.logger.java.sql.Statement=debuglog4j.logger.java.sql.PreparedStatement=debug,stdoutlog4j.logger.java.sql.PreparedStatement=debug,stdout,R.jiahelife=debug.jiahelife.platform=error2、log4j使用jar包:log4j-1.2.8.jarcommons-discovery-0.2.j
6、arcommons-logging.jar3、wsdl使用jar包:axis.jarwsdl4j-1.5.1.jar二、 開始生成文件:具體操作如下圖:選中Include libraries when searching for a main class復選框;然后點擊Search按鈕進入如下的畫面,在輸入框中輸入WSDL2Java點擊【OK】按鈕進入下圖:點擊Arguments的頁面,進行如下設置:21說明:1、WSDL文件生成的XML文件 2、XML文件所在工作目錄,以及生成后java文件的存放目錄。點擊【Run】后生成文件。三、項目結(jié)構(gòu)圖:com文件夾就是生成后的wsdl代碼。四、補充說
7、明1、arguments標簽欄里輸入?yún)?shù)參考: -h, -help print this message and exit -v, -verbose print informational messages -n, -noImports only generate code for the immediate WSDL document -O, -timeout <argument> timeout in seconds (default is 45, specify -1 to disable) -D, -Debug print debug information -W, -no
8、Wrapped turn off support for "wrapped" document/literal -q, -quiet do not print any informational or debug messages (except err ors) -s, -server-side emit server-side bindings for web service -S, -skeletonDeploy <argument> deploy skeleton (true) or implementation (false) in deploy.w
9、sdd. Default is false. Assumes -server-side. -N, -NStoPkg <argument>=<value> mapping of namespace to package -f, -fileNStoPkg <argument> file of NStoPkg mappings (default NStoPperties) -p, -package <argument> override all namespace to package mappings, use this package
10、name instead -o, -output <argument> output directory for emitted files -d, -deployScope <argument> add scope to deploy.wsdd: "Application", "Request", "Session " -t, -testCase emit junit testcase class for web service -a, -all generate code for all elements,
11、 even unreferenced ones -T, -typeMappingVersion <argument> indicate 1.1 or 1.2. The default is 1.1 (SOAP 1.1 JAX-RPC c ompliant. 1.2 indicates SOAP 1.1 encoded.) -F, -factory <argument> name of a custom class that implements GeneratorFactory inte rface (for extending Java generation func
12、tions) -H, -helperGen emits separate Helper classes for meta data -B, -buildFile emit Ant Buildfile for web service -U, -user <argument> username to access the WSDL-URI -P, -password <argument> password to access the WSDL-URI -X, -classpath additional classpath elements -i, -nsInclude <argument> include namespace in generated code -x, -nsExclude <argument> exclude namespace from generated code -c, -implementationClassName <argument> custom name of web servi
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 有機合成反應試題及答案
- 系統(tǒng)架構(gòu)設計中的敏捷開發(fā)應用試題及答案
- 醫(yī)生技能考試試題及答案
- 鄉(xiāng)村全科執(zhí)業(yè)醫(yī)師考試疑難問題解答試題及答案
- 應試技巧的初級會計師試題及答案
- 禮貌問詢面試題及答案
- 教師資格證基礎知識考查試題及答案
- 網(wǎng)絡規(guī)劃設計師考試知識結(jié)構(gòu)體系試題及答案
- 機車質(zhì)量測試題及答案
- 浙江面試題及答案
- 2024年華陽新材料科技集團有限公司校園招聘考試試題及答案1套
- 國家八年級數(shù)學質(zhì)量測試題(六套)
- 醫(yī)院院外會診申請單、醫(yī)師外出會診審核表、醫(yī)師外出會診回執(zhí)
- 形勢與政策中國式現(xiàn)代化論文1500字
- MOOC 宋詞經(jīng)典-浙江大學 中國大學慕課答案
- 個體診所備案信息表
- MOOC 工程材料學-華中科技大學 中國大學慕課答案
- 礦山設備授權(quán)書
- 快消品公司銷售部薪酬績效方案(快消品公司銷售KPI績效考核指標)
- 《某地新建礦山智能化綜合管控平臺項目可行性研究報告》
- 金鏟鏟之戰(zhàn)教程
評論
0/150
提交評論