axisのオブジェクトはspringで管理される構成になります.


そのメールゲートウェイの項目に続いて、プロジェクトでスプリングを採用しました.axis 2とspringの結合は簡単ですが、axisとspringの結合は遠回りするかもしれません.
まずGenUserImplはaxis webserviceをリリースするクラスです.まず、Servlet Endpoint Supportを引き継ぎます.

  
  
  
  
  1. public class GenUserImpl  extends ServletEndpointSupport implements GenUserInter { 
再実現方法
 

  
  
  
  
  1. @Override 
  2.     public SMSResultAggre queryReturnReceiptAggre(CII cii, EchoQuery echoQuery) { 
  3.         return this.server.queryReturnReceiptAggre(cii, echoQuery); 
  4.     } 
  5.  
  6.      protected void onInit() throws ServiceException 
  7.      { 
  8.             //   Spring   Bean   
  9.          this.server= (GenUserInter) getApplicationContext() 
  10.                           .getBean("gui"); 
  11.      } 
これでいいです   by dp