#set( $package = $generated.packageName) #set( $serviceName = $generated.ServiceName) #set( $namespaceVersionHolder = $generated.NamespaceVersionHolder) #set( $customMethodList = $generated.CustomMappings) package $package; import org.apache.ws.resource.ResourceContext; import org.apache.xmlbeans.XmlObject; import org.apache.xmlbeans.XmlException; import javax.xml.rpc.JAXRPCException; /** * A $serviceName service. * * This class is generated ONCE and never overwritten. * If there is a change to the WSDL, then the generated implemented interfaces * representing the implemented portTypes will change, thus showing a compile error to the * user. *
* NOTE: This file is generated, but is meant to be modified. * It will NOT be overwritten by subsequent runs of Wsdl2Java. */ public class ${serviceName}Service extends Abstract${serviceName}Service implements ${serviceName}CustomOperationsPortType { #if($namespaceVersionHolder) /** * A NamespaceVerionHolder which maintains the QNames of Spec Wsdls */ $namespaceVersionHolder #end /** * Creates a new {@link ${serviceName}Service } object. * * @param resourceContext DOCUMENT_ME */ public ${serviceName}Service( ResourceContext resourceContext ) { super(resourceContext); init(); } #if($namespaceVersionHolder) /** * Returns a collection of Spec Namespaces associated with this Service * * @return A NamespaceVersionHolder impl which represents the collection of spec namespaces * associated with this service. */ protected org.apache.ws.resource.properties.NamespaceVersionHolder getNamespaceSet() { return SPEC_NAMESPACE_SET; } #end #foreach( $key in $customMethodList.keySet() ) public $customMethodList.get($key).JavaMethodSignature { ${customMethodList.get($key).FullyQualifiedResponseClassName} responseDocument = ${customMethodList.get($key).FullyQualifiedResponseClassName}.Factory.newInstance(); /** * TODO implement method and populate the response object * * For more information on working-with/populating the XmlBean-generated types. * * See http://xmlbeans.apache.org/documentation/tutorial_getstarted.html#Results+of+Compiling+the+Schema */ return responseDocument; } #end }