<?xml version="1.0" encoding="UTF-8"?>
<java-wsdl-mapping xmlns="http://java.sun.com/xml/ns/j2ee"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1"
                   xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
                     http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd">

   <package-mapping>
      <package-type>org.jboss.test.ws.jaxrpc.samples.mtom</package-type>
      <namespaceURI>http://org.jboss.ws/samples/mtom</namespaceURI>
   </package-mapping>

   <java-xml-type-mapping>
      <java-type>org.jboss.test.ws.jaxrpc.samples.mtom.Employee</java-type>
      <anonymous-type-qname xmlns:typeNS='http://org.jboss.ws/samples/mtom'>typeNS:&gt;Employee</anonymous-type-qname>
      <qname-scope>complexType</qname-scope>
      <variable-mapping>
         <java-variable-name>firstname</java-variable-name>
         <xml-element-name>firstname</xml-element-name>
      </variable-mapping>
      <variable-mapping>
         <java-variable-name>lastname</java-variable-name>
         <xml-element-name>lastname</xml-element-name>
      </variable-mapping>
      <variable-mapping>
         <java-variable-name>legacyData</java-variable-name>
         <xml-element-name>legacyData</xml-element-name>
      </variable-mapping>
   </java-xml-type-mapping>

   <java-xml-type-mapping>
      <java-type>org.jboss.test.ws.jaxrpc.samples.mtom.Status</java-type>
      <anonymous-type-qname xmlns:typeNS='http://org.jboss.ws/samples/mtom'>typeNS:&gt;Status</anonymous-type-qname>
      <qname-scope>complexType</qname-scope>
      <variable-mapping>
         <java-variable-name>code</java-variable-name>
         <xml-element-name>code</xml-element-name>
      </variable-mapping>
   </java-xml-type-mapping>

   <java-xml-type-mapping>
      <java-type>org.jboss.test.ws.jaxrpc.samples.mtom.Query</java-type>
      <anonymous-type-qname xmlns:typeNS='http://org.jboss.ws/samples/mtom'>typeNS:&gt;Query</anonymous-type-qname>
      <qname-scope>complexType</qname-scope>
      <variable-mapping>
         <java-variable-name>firstname</java-variable-name>
         <xml-element-name>firstname</xml-element-name>
      </variable-mapping>
      <variable-mapping>
         <java-variable-name>lastname</java-variable-name>
         <xml-element-name>lastname</xml-element-name>
      </variable-mapping>
   </java-xml-type-mapping>

   <service-interface-mapping>
      <service-interface>org.jboss.test.ws.jaxrpc.samples.mtom.HRService</service-interface>
      <wsdl-service-name xmlns:serviceNS="http://org.jboss.ws/samples/mtom">serviceNS:EmployeeService</wsdl-service-name>
      <port-mapping>
         <port-name>EmployeeRecordsPort</port-name>
         <java-port-name>EmployeeRecordsPort</java-port-name>
      </port-mapping>
   </service-interface-mapping>

   <service-endpoint-interface-mapping>
      <service-endpoint-interface>org.jboss.test.ws.jaxrpc.samples.mtom.EmployeeRecords</service-endpoint-interface>
      <wsdl-port-type xmlns:portTypeNS="http://org.jboss.ws/samples/mtom">portTypeNS:EmployeeRecords</wsdl-port-type>
      <wsdl-binding xmlns:bindingNS="http://org.jboss.ws/samples/mtom">bindingNS:EmployeeRecordsBinding</wsdl-binding>

      <service-endpoint-method-mapping>
         <java-method-name>updateEmployee</java-method-name>
         <wsdl-operation>updateEmployee</wsdl-operation>
         <method-param-parts-mapping>
            <param-position>0</param-position>
            <param-type>org.jboss.test.ws.jaxrpc.samples.mtom.Employee</param-type>
            <wsdl-message-mapping>
               <wsdl-message xmlns:wsdlMsgNS="http://org.jboss.ws/samples/mtom">wsdlMsgNS:UpdateRequest</wsdl-message>
               <wsdl-message-part-name>parameters</wsdl-message-part-name>
               <parameter-mode>IN</parameter-mode>
            </wsdl-message-mapping>
         </method-param-parts-mapping>

         <wsdl-return-value-mapping>
            <method-return-value>org.jboss.test.ws.jaxrpc.samples.mtom.Status</method-return-value>
            <wsdl-message xmlns:wsdlMsgNS="http://org.jboss.ws/samples/mtom">wsdlMsgNS:UpdateResponse</wsdl-message>
            <wsdl-message-part-name>result</wsdl-message-part-name>
         </wsdl-return-value-mapping>
      </service-endpoint-method-mapping>

      <service-endpoint-method-mapping>
         <java-method-name>queryEmployee</java-method-name>
         <wsdl-operation>queryEmployee</wsdl-operation>
         <method-param-parts-mapping>
            <param-position>0</param-position>
            <param-type>org.jboss.test.ws.jaxrpc.samples.mtom.Query</param-type>
            <wsdl-message-mapping>
               <wsdl-message xmlns:wsdlMsgNS="http://org.jboss.ws/samples/mtom">wsdlMsgNS:QueryRequest</wsdl-message>
               <wsdl-message-part-name>parameters</wsdl-message-part-name>
               <parameter-mode>IN</parameter-mode>
            </wsdl-message-mapping>
         </method-param-parts-mapping>

         <wsdl-return-value-mapping>
            <method-return-value>org.jboss.test.ws.jaxrpc.samples.mtom.Employee</method-return-value>
            <wsdl-message xmlns:wsdlMsgNS="http://org.jboss.ws/samples/mtom">wsdlMsgNS:QueryResponse</wsdl-message>
            <wsdl-message-part-name>result</wsdl-message-part-name>
         </wsdl-return-value-mapping>
      </service-endpoint-method-mapping>

   </service-endpoint-interface-mapping>


</java-wsdl-mapping>