From: Vance K. <va...@us...> - 2006-04-11 15:45:16
|
User: vancek Date: 06/04/11 08:45:14 Added: andromda-ejb3/src/main/resources/templates/ejb3 WebServiceInterface.vsl Log: initial revision - web service interface for exposing ejb3 session bean webservices using jsr181 Revision Changes Path 1.1 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/WebServiceInterface.vsl Index: WebServiceInterface.vsl =================================================================== // license-header java merge-point /* Autogenerated by AndroMDA (WebServiceInterface.vsl) - do not edit */ #if ($stringUtils.isNotBlank($service.packageName)) package $service.packageName; #end #set ($generatedFile = "${stringUtils.replace($service.fullyQualifiedWebServiceInterfaceName,'.','/')}.java") /** * Web service interface for the ${service.serviceName} session bean. * */ @javax.jws.WebService(targetNamespace = "${service.namespace}", serviceName = "${service.qName}") @javax.jws.soap.SOAPBinding(style = javax.jws.soap.SOAPBinding.Style.${stringUtils.upperCase($service.style)}, use = javax.jws.soap.SOAPBinding.Use.${stringUtils.upperCase($service.use)}, parameterStyle = javax.jws.soap.SOAPBinding.ParameterStyle.${stringUtils.upperCase($service.parameterStyle)}) #if ($stringUtils.equals(${persistenceContainerName}, "jboss")) @org.jboss.ws.annotation.PortComponent(contextRoot = "${webServiceContextRoot}", urlPattern="${webServiceUrlPattern}/${service.qName}/*") #end public interface ${service.webServiceInterfaceName} extends java.rmi.Remote { #set ($operations = $service.businessOperations) #if (!$operations.empty) #**##foreach ($operation in $operations) ## ## Only expose methods that are not lifecycle callbacks ## Only expose public methods with remote view type accessability ## Operation must be exposed as a web-service operation (<<WebService>> on class or <<WebServiceOperation>> on operation) ## All operations throw java.rmi.RemoteException ## #* *##if (!$operation.lifecycleCallback && ($operation.visibility == "public") && ($operation.viewTypeRemote || $operation.viewTypeBoth) && ($operation.exposed)) @javax.jws.WebMethod(operationName = "${stringUtils.capitalize($operation.name)}") #* *##if ($operation.oneway) @javax.jws.Oneway #* *##end public $operation.returnType.fullyQualifiedName $operation.annotatedSignature#if ($operation.exceptionsPresent) $operation.throwsClause, java.rmi.RemoteException#else throws java.rmi.RemoteException#end; #* *##end #**##end #end } |