2007년 5월 3일 목요일

SOAP Server Module Dispatch

case 1. Static external
SOAP::Transport::HTTP::CGI  
    -> dispatch_to('Demo')    
    -> handle;

설명 : Demo는 @INC내에 있어야 하며 해당 서버는 Demo 클래스만을 dispatch할 수 있다.

Case 2. Dynamic

      SOAP::Transport::HTTP::CGI
    -> dispatch_to('/home/soaplite/modules')
    -> handle;

설명: 모듈이 저장된 디렉터리를 설정함으로써 모듈 디렉터리 내부의 클래스들을 사용할 수 있다.

Case 3. Mixed
     SOAP::Transport::HTTP::CGI
     -> dispatch_to('/home/soaplite/modules', 'Demo', 'Demo1', 'Demo2')
     -> handle;
설명: 디렉터리와 특정 모듈을 모두 사용할 수 있다.


댓글 없음:

댓글 쓰기