title: Java: JAX-WS Mapping
body: <p>I am using JAX-WS for web services.</p>
  
  <p>Whenever I use a char as a method parameter, I am getting it as an unsignedShort in the xsd  (Focus on weatherLetter).</p>
  
  <p>Here is the declaration:</p>
  
  <pre><code>@WebMethod
  public boolean setWXtatus(
          @WebParam(name = "weatherLetter") char weatherLetter,
          @WebParam(name = "weatherDigit") int weatherDigit,
          @WebParam(name = "cloudCover") int cloudCover,
          @WebParam(name = "cloudBaseInHundredsOfFeet") int cloudBaseInHundredsOfFeet,
          @WebParam(name = "pressureInHg") int pressureInHg,
          @WebParam(name = "visibilityInKm") int visibilityInKm,
          @WebParam(name = "windSpeed") int windSpeed,
          @WebParam(name = "windDirection") int windDirection,
          @WebParam(name = "lastUpdateHour") int lastUpdateHour,
          @WebParam(name = "lastUpdateMin") int lastUpdateMin
  ) 
  </code></pre>
  
  <p>Here is the type mappings I get:</p>
  
  <pre><code>&lt;xs:complexType name="setWXStatus"&gt;
  &lt;xs:sequence&gt;
  &lt;xs:element name="weatherLetter" type="xs:unsignedShort" minOccurs="0"/&gt;
  &lt;xs:element name="weatherDigit" type="xs:int"/&gt;
  &lt;xs:element name="cloudCover" type="xs:int"/&gt;
  &lt;xs:element name="cloudBaseInHundredsOfFeet" type="xs:int"/&gt;
  &lt;xs:element name="pressureInHg" type="xs:int"/&gt;
  &lt;xs:element name="visibilityInKm" type="xs:int"/&gt;
  &lt;xs:element name="windSpeed" type="xs:int"/&gt;
  &lt;xs:element name="windDirection" type="xs:int"/&gt;
  &lt;xs:element name="lastUpdateHour" type="xs:int"/&gt;
  &lt;xs:element name="lastUpdateMin" type="xs:int"/&gt;
  &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  </code></pre>
  
  <p>How can I get weatherLetter to generate as a Char or 1 Letter String or something?</p>