<!-- Use this file to deploy some handlers/chains and services      -->
<!-- Two ways to do this:                                           -->
<!--   java org.apache.axis.client.AdminClient deploy.wsdd          -->
<!--      after the axis server is running                          -->
<!-- or                                                             -->
<!--   java org.apache.axis.utils.Admin client|server deploy.wsdd   -->
<!--      from the same directory that the Axis engine runs         -->

<deployment
    xmlns="http://xml.apache.org/axis/wsdd/"
    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

  <!-- Services from AddressBookService WSDL service -->

  <service name="AddressBook" provider="java:RPC" style="rpc" use="encoded">
      <parameter name="wsdlTargetNamespace" value="http://net.jboss.org/samples/AddressBook"/>
      <parameter name="wsdlServiceElement" value="AddressBookService"/>
      <parameter name="wsdlServicePort" value="AddressBook"/>
      <parameter name="className" value="samples.addr.AddressBookSOAPBindingImpl"/>
      <parameter name="wsdlPortType" value="AddressBook"/>
      <operation name="addEntry" qname="operNS:addEntry" xmlns:operNS="http://net.jboss.org/samples/AddressBook" >
        <parameter name="name" type="tns:string" xmlns:tns="http://www.w3.org/2001/XMLSchema"/>
        <parameter name="address" type="tns:Address" xmlns:tns="http://net.jboss.org/samples/AddressBook"/>
      </operation>
      <operation name="getAddressFromName" qname="operNS:getAddressFromName" xmlns:operNS="http://net.jboss.org/samples/AddressBook" returnQName="address" returnType="rtns:Address" xmlns:rtns="http://net.jboss.org/samples/AddressBook" >
        <parameter name="name" type="tns:string" xmlns:tns="http://www.w3.org/2001/XMLSchema"/>
      </operation>
      <parameter name="allowedMethods" value="addEntry getAddressFromName"/>
      <parameter name="scope" value="Session"/>

      <typeMapping
        xmlns:ns="http://net.jboss.org/samples/AddressBook"
        qname="ns:Phone"
        type="java:samples.addr.Phone"
        serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
        deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      />
      <typeMapping
        xmlns:ns="http://net.jboss.org/samples/AddressBook"
        qname="ns:Address"
        type="java:samples.addr.Address"
        serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
        deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      />
      <typeMapping
        xmlns:ns="http://net.jboss.org/samples/AddressBook"
        qname="ns:StateType"
        type="java:samples.addr.StateType"
        serializer="org.apache.axis.encoding.ser.EnumSerializerFactory"
        deserializer="org.apache.axis.encoding.ser.EnumDeserializerFactory"
        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      />
  </service>
</deployment>
