1. 编译此服务源代码生成库文件如libadtDeviceService.so , 写好wsdl,如adtDeviceService.wsdl ,写好services.xml.
2. 在$AXIS2C_HOME/services目录新建立目录adtDeviceService,将上述三文件复制到此目录。
3. Restart axis2_http_server
4. WEB访问http://localhost/axis2/services
5. 客户端运行即可访问此服务。查看客户端运行后的log:axis2.log
[Tue Apr 26 13:09:57 2011] [info] Starting HTTP server thread
[Tue Apr 26 13:10:24 2011] [debug] http_worker.c(200) Client HTTP version HTTP/1.1
[Tue Apr 26 13:10:24 2011] [debug] soap_builder.c(945) identified soap version is soap12
[Tue Apr 26 13:10:24 2011] [debug] phase.c(210) Invoke the handler request_uri_based_dispatcher within the phase Transport
[Tue Apr 26 13:10:24 2011] [debug] req_uri_disp.c(100) Checking for service using target endpoint address : http://192.168.6.209:9090/axis2/services/adtDeviceService
[Tue Apr 26 13:10:24 2011] [debug] req_uri_disp.c(121) Service found using target endpoint address
[Tue Apr 26 13:10:24 2011] [debug] phase.c(210) Invoke the handler AddressingInHandler within the phase Transport
[Tue Apr 26 13:10:24 2011] [info] Starting addressing in handler
[Tue Apr 26 13:10:24 2011] [debug] phase.c(210) Invoke the handler addressing_based_dispatcher within the phase Transport
[Tue Apr 26 13:10:24 2011] [debug] phase.c(210) Invoke the handler rest_dispatcher within the phase Dispatch
[Tue Apr 26 13:10:24 2011] [debug] phase.c(210) Invoke the handler soap_message_body_based_dispatcher within the phase Dispatch
[Tue Apr 26 13:10:24 2011] [debug] phase.c(210) Invoke the handler soap_action_based_dispatcher within the phase Dispatch
[Tue Apr 26 13:10:24 2011] [debug] soap_action_disp.c(115) Checking for operation using SOAPAction : urn:queryAcBasicInfo
[Tue Apr 26 13:10:24 2011] [debug] soap_action_disp.c(146) Operation found using SOAPAction
[Tue Apr 26 13:10:24 2011] [debug] phase.c(210) Invoke the handler dispatch_post_conditions_evaluator within the phase PostDispatch