Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
3Activity
0 of .
Results for:
No results containing your search query
P. 1
AXIS安裝與Web Service發佈

AXIS安裝與Web Service發佈

Ratings:

5.0

(2)
|Views: 2,043|Likes:
Published by ChiHua0826
AXIS安裝與Web Service發佈
AXIS安裝與Web Service發佈

More info:

Published by: ChiHua0826 on Nov 06, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF or read online from Scribd
See more
See less

11/04/2012

 
AXIS
安裝與
Web Service
   發佈
 
  編輯者:陳志華
 
   第
1
  頁
 
AXIS
安裝與
Web Service
發佈
 
一、
AXIS2
安裝
 
(1)
 下載
AXIS2
http://ws.apache.org/axis2/download/1_3/download.cgi (2)
   解壓縮
axis2.war
% CATALINA_HOME% \ webapps \ axis2.war(3)
  重新啟動
Tomcat
二、
Code Generator Wizard - Eclipse
外掛安裝
 
(1)
 下載
Eclipse
  外掛,
http://apache.ntu.edu.tw/ws/axis2/tools/1_3/  (2) axis2-eclipse-codegen-wizard.zip
   解壓縮到
Eclipse \ plugins
   目錄中
 
 
AXIS
安裝與
Web Service
   發佈
 
  編輯者:陳志華
 
   第
2
  頁
 
三、發佈
Web Service
(1)
   開啟
Eclipse
,並新增
Java Project
,命名為
HelloWorldService(2)
於專案中新增
HelloWorldService.java(3)
   輸入程式碼,以下為加法範例
 
public class HelloWorldService {public int echo(int a1, int a2) {int value = a1 + a2;System.out.println("Service HelloWorldService: " + value);return value;}}
(4)
  新增目錄
META-INF
HelloWorldService
 
AXIS
安裝與
Web Service
   發佈
 
  編輯者:陳志華
 
   第
3
  頁
 
(5)
  新增
services.xml
  檔案於
 \ META-INF \ 
   目錄下
 
其中
services.xml
  內容為
 
<service>  <parametername="ServiceClass"locked="false">  HelloWorldService</parameter>  <operationname="echo">  <messageReceiverclass="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>  </operation>  </service>
 

Activity (3)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
黃振德 liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->