kr.co.hit.live.ws.axis
Class WSDDServiceRpcProvider

java.lang.Object
  extended by org.apache.axis.deployment.wsdd.WSDDProvider
      extended by kr.co.hit.live.ws.axis.WSDDServiceRpcProvider

public class WSDDServiceRpcProvider
extends org.apache.axis.deployment.wsdd.WSDDProvider

Axis의 WSDD파일의 <service>에 정의된 provider의 이름이 "java:LIVE" 인 경우 사용되는 WSDDProvider 클래스이다. 다음은 Apache Axis의 org.apache.axis.deployment.wsdd.WSDDProvider에 정의된 loadPluggableProviders() 메소드의 설명이다. 이 클래스를 Axis가 인식하게하기 위하여 아래와 같은 절차가 필요하다.

Look for file META-INF/services/org.apache.axis.deployment.wsdd.Provider in all the JARS, get the classes listed in those files and add them to providers list if they are valid providers.
Here is how the scheme would work.
A company providing a new provider will jar up their provider related classes in a JAR file. The following file containing the name of the new provider class is also made part of this JAR file.

META-INF/services/org.apache.axis.deployment.wsdd.Provider

By making this JAR part of the webapp, the new provider will be automatically discovered.

Since:
5.0
Author:
김형도

Field Summary
 
Fields inherited from class org.apache.axis.deployment.wsdd.WSDDProvider
log
 
Constructor Summary
WSDDServiceRpcProvider()
           
 
Method Summary
 String getName()
          Provider 명을 리턴한다.
 org.apache.axis.Handler newProviderInstance(org.apache.axis.deployment.wsdd.WSDDService service, org.apache.axis.EngineConfiguration registry)
          실제 서비스 처리를 위한 Axis의 Provider 구현 객체를 리턴한다.
 
Methods inherited from class org.apache.axis.deployment.wsdd.WSDDProvider
getInstance, getOperation, getOperations, registerProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDDServiceRpcProvider

public WSDDServiceRpcProvider()
Method Detail

newProviderInstance

public org.apache.axis.Handler newProviderInstance(org.apache.axis.deployment.wsdd.WSDDService service,
                                                   org.apache.axis.EngineConfiguration registry)
                                            throws Exception
실제 서비스 처리를 위한 Axis의 Provider 구현 객체를 리턴한다.

Specified by:
newProviderInstance in class org.apache.axis.deployment.wsdd.WSDDProvider
Throws:
Exception

getName

public String getName()
Provider 명을 리턴한다. 이 클래스를 Provider로 사용하기 위하여 WSDD 파일의 <service>의 provider 속성을 "java:LIVE"로 지정한다.
작성예)
  <service name="Calculator" provider="java:LIVE">
    <parameter name="allowedMethods" value="calculate"/>
    <parameter name="className" value="livesample.calculator.Calculator"/>
    <parameter name="serviceName" value="Calculator"/>
  </service>
 

Specified by:
getName in class org.apache.axis.deployment.wsdd.WSDDProvider


Copyright © 2014. All Rights Reserved.