#set( $package = $generated.packageName) #set( $serviceName = $generated.ServiceName) #set( $implements = $generated.serviceImplements) #set( $namespace = $generated.namespace) #set( $prefix = $generated.prefix) #set( $customMethodList = $generated.CustomMappings) package $package; import org.apache.ws.resource.ResourceContext; import org.apache.ws.resource.handler.SoapMethodNameMap; import org.apache.ws.resource.handler.WsrfService; import org.apache.ws.resource.AbstractPortType; import org.apache.ws.resource.handler.ServiceSoapMethodNameMap; import javax.xml.namespace.QName; /** * An abstract base class for the $serviceName service. *
* ***** WARNING ***** * This class is generated by Wsdl2Java and is NOT meant to be modified. * It will be overwritten by subsequent runs of Wsdl2Java. */ public abstract class Abstract${serviceName}Service extends AbstractPortType #if($implements) implements ${implements} #end { public static final String TARGET_NSURI = "$namespace"; public static final String TARGET_NSPREFIX = "$prefix"; /** * DOCUMENT_ME */ private ServiceSoapMethodNameMap m_methodNameMap; /** * DOCUMENT_ME */ private boolean m_isInitialized; public Abstract${serviceName}Service( ResourceContext resourceContext ) { super(resourceContext); } /** * DOCUMENT_ME * * @param requestQname DOCUMENT_ME * * @return DOCUMENT_ME */ public String getMethodName( QName requestQname ) { if ( !m_isInitialized ) { init( ); } return m_methodNameMap.getMethodName( requestQname ); } /** * DOCUMENT_ME * * @return DOCUMENT_ME */ public final SoapMethodNameMap getMethodNameMap( ) { return m_methodNameMap; } /** * DOCUMENT_ME */ public void init( ) { m_methodNameMap = new ServiceSoapMethodNameMap( getResourceContext( ) ); #foreach( $key in $customMethodList.keySet() ) m_methodNameMap.addMapping( javax.xml.namespace.QName.valueOf("${key}") , "$customMethodList.get($key).JavaMethodName" ); #end m_isInitialized = true; } /** * DOCUMENT_ME * * @return DOCUMENT_ME */ protected final boolean isInitialized( ) { return m_isInitialized; } #foreach( $includeFile in $generated.ServiceIncludeFiles ) #include( $includeFile ) #end }