freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

axis2中文手冊-文庫吧

2025-06-10 06:03 本頁面


【正文】 source implementation of WSCoordination, WSAtomicTransaction and WSBusinessActivity based on Axis. The initial implementation will be in Java using Axis/Java. In addition to providing an implementation, a major focus of this project would be to ensure interoperability with other implementations of above specifications, particularly those by Microsoft (.NET) and IBM.第二部分:使用Axis2開發(fā)web services首先你需要在Servlet容器中部署可以通過兩種方式來創(chuàng)建web services1.使用Axis2的API,實(shí)現(xiàn)業(yè)務(wù)代碼2.從WSDL開始,生成代碼框架,然后實(shí)現(xiàn)業(yè)務(wù)邏輯1)使用Axis2的API首先,計(jì)劃生成一個(gè)服務(wù)MyService,它有兩個(gè)方法:public void ping(OMElement element){} //INONLY operation, just accepts the OMElement and do some processing.public OMElement echo(OMElement element){}//INOUT operation, accepts an OMElement and sends back the same again從例子里找到實(shí)現(xiàn)的代碼:Axis2Home/samples/userguide/src中的userguide/example1創(chuàng)建一個(gè)服務(wù)分4個(gè)步驟a.編寫實(shí)現(xiàn)代碼b.用來解釋這個(gè)服務(wù)c.創(chuàng)建一個(gè)*.aar的服務(wù)部署包d.發(fā)布服務(wù)Step 1:實(shí)現(xiàn)代碼public class MyService{ public void ping(OMElement element){ ...... } public OMElement echo(OMElement element){ ...... }}Step 2:通過來描述服務(wù) This is a sample Web Service with two operations, echo and ping. urn:echo urn:ping說明:For the echo operation we have used a RawXMLINOutMessageReceiver since it is an INOUT operation. For INONLY operation ping, we have used RawXMLINOnlyMessageReceiver as the message receiver.The actionMapping is required only if you want to enable WSAddressing.還可以用這個(gè)文件來描述一組服務(wù),這組服務(wù)之間可以共享ServiceGroupContext ! details for Service1 ! details for Service2 value 1Step 3:創(chuàng)建服務(wù)發(fā)布包這個(gè)服務(wù)發(fā)布包的結(jié)構(gòu)如圖所示。將這些文件按照圖中的結(jié)構(gòu)組織好,然后打包成jar或者rar,然后修改后綴名為aar即可。Step 4:部屬服務(wù)將服務(wù)發(fā)布包放到/webapps/axis2/WEBINF中的services文件夾下,然后在Axis2的首頁(://localhost:8080/axis2/)的’services’連接下察看服務(wù)發(fā)布情況2)用服務(wù)代碼生成的方式創(chuàng)建服務(wù)首先要寫好服務(wù)的wsdl然后利用WSDL2Ja
點(diǎn)擊復(fù)制文檔內(nèi)容
語文相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1