<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

<!-- Velocity: $Id: deploy_endpoint.vm 11084 2007-08-01 08:32:24Z durieuxp $ -->
#*  *##foreach ($pc in $portComponents)
## start foreach pc
      <service name="$pc.getName()" provider="java:$provider"
	           style="$pc.getStyle()" use="$pc.getUse()" >
#if ($pc.getWSDLFilename())
        <wsdlFile>$pc.getWSDLFilename()</wsdlFile>
#end
#if ($pc.getNamespace())
        <!-- Namespace -->
        <namespace>$pc.getNamespace()</namespace>
#end
        <!-- Default value for scope -->
        <parameter  name="scope" value="session"/>
#if ($provider == "JOnASEJB")
## start if ejb
#set ($bean = $pc.getBean())
        <parameter  name="serviceEndpointJndiName"
                    value="$bean.getServiceEndpointJndiName()"/>
		<parameter 	name="serviceEndpointInterfaceName"
		    		value="$bean.getServiceEndpointInterfaceName()"/>
		<parameter  name="allowedMethods"
                    value="$pc.getMethods()"/>

		<handlerInfoChain>
#foreach ($handler in $pc.getHandlers())
##start foreach handlers
			<handlerInfo classname="$handler.getClassName()">
## pour chaque init parameter
#foreach ($param in $handler.getInitParameters())
				<parameter name="$param.getName()" value="$param.getValue()"/>
#end
## pour chaque header
#foreach ($header in $handler.getHeaders())
				<header qname="ns:$header.getQName()" xmlns:ns="$header.getNamespace()"/>
#end
			</handlerInfo>
#foreach ($role in $handler.getSoapRoles())
			<role soapActorName="$role"/>
#end
#end
## end foreach handlers
		</handlerInfoChain>
#end
## end if ejb
#if ($provider == "RPC")
## start if rpc
	<parameter  name="className"
                value="$pc.getJaxRpcClassName()"/>
#if ($pc.getMethods().length() != 0)
	<parameter  name="allowedMethods"
                value="$pc.getMethods()"/>
#else
	<parameter  name="allowedMethods"
                value="*"/>
#end
	<handlerInfoChain>
#foreach ($handler in $pc.getHandlers())
##start foreach handlers
		<handlerInfo classname="$handler.getClassName()">
## pour chaque init parameter
#foreach ($param in $handler.getInitParameters())
			<parameter name="$param.getName()" value="$param.getValue()"/>
#end
## pour chaque header
#foreach ($header in $handler.getHeaders())
			<header qname="ns:$header.getQName()" xmlns:ns="$header.getNamespace()"/>
#end
		</handlerInfo>
#end
## end foreach handlers
	</handlerInfoChain>
#end
## end if rpc
    </service>

#*  *##end
## end foreach pc

#foreach ($mapping in $mappings)
    $mapping.toString()
#end
</deployment>
