<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<jaxws:bindings
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
  xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
  xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.1"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  wsdlLocation="service.wsdl">

    <enableWrapperStyle>true</enableWrapperStyle>
    <enableAsyncMapping>false</enableAsyncMapping>

    {{#models}}
    {{#model}}
    {{^allOf}}
    {{#vars}}
    {{#isEnum}}
    {{#baseType}}
    <jaxws:bindings node="xsd:simpleType[@name='{{name}}']">
    	<jaxb:typesafeEnumClass>
	        {{#allowableValues}}
          	{{#enumVars}}
	        <jaxb:typesafeEnumMember value={{{value}}} name="{{name}}" />
	        {{/enumVars}}
         	{{/allowableValues}}
	    </jaxb:typesafeEnumClass>
    </jaxws:bindings>
    {{/baseType}}
    {{/isEnum}}
    {{/vars}}
    {{/allOf}}
    {{/model}}
    {{/models}}

    {{#models}}
    {{#model}}
    {{^vars}}
    <jaxws:bindings node="xsd:simpleType[@name='{{name}}']">
    	<jaxb:typesafeEnumClass>
	        {{#allowableValues}}
          	{{#enumVars}}
	        <jaxb:typesafeEnumMember value={{{value}}} name="{{name}}" />
	        {{/enumVars}}
         	{{/allowableValues}}
	    </jaxb:typesafeEnumClass>
    </jaxws:bindings>
    {{/vars}}
    {{/model}}
    {{/models}}

</jaxws:bindings>
