title: Jax-Ws Unmarshalling Error
body: <p>I'm having an issue with Jax-Ws and also after searching the net for day I found no working solution.
  I'm running my Soap Ws on a local jboss eap7.</p>
  
  <p>The relevant snippet of my wsdl looks like this: </p>
  
  <pre><code>&lt;xs:complexType name="simpleTravelingDay"&gt;
  &lt;xs:sequence&gt;
    &lt;xs:element name="gid" type="xs:string"/&gt;
    &lt;xs:element name="dayType" type="xs:long"/&gt;
    &lt;xs:element name="date" type="xs:dateTime"/&gt;
    &lt;xs:element name="projectId" type="xs:long"/&gt;
  </code></pre>
  
  <p></p>
  
  <p>My webservice looks like this:</p>
  
  <pre><code>@WebService(name = "TravelTrackerWS")
  public interface TravelTrackerWSLocal {
  
    @WebMethod(operationName = "fillSimpleTravelingDays")
    public WsAnswer fillSimpleAndTravelingDays(
        @XmlElement(required = true, nillable = false) @WebParam(name = "SimpleAndTravelingDays") List&lt;SimpleTravelingDay&gt; days)
        throws InsufficientRightsException;
  </code></pre>
  
  <p>}</p>
  
  <p>If I do a request like this:</p>
  
  <pre><code>  &lt;soapenv:Header/&gt;
     &lt;soapenv:Body&gt;
    &lt;ser:fillSimpleTravelingDays&gt;
       &lt;!--1 or more repetitions:--&gt;
       &lt;SimpleAndTravelingDays&gt;
          &lt;gid&gt;Z0030UDK&lt;/gid&gt;
          &lt;date&gt;2014-10-31&lt;/date&gt;
          &lt;country&gt;AU&lt;/country&gt;
          &lt;projectId&gt;a&lt;/projectId&gt;
       &lt;/SimpleAndTravelingDays&gt;
    &lt;/ser:fillSimpleTravelingDays&gt;
  </code></pre>
  
  <p></p>
  
  <p>I get an Unmarshalling Error, which is correct, because 'a' is a String and not Long.</p>
  
  <pre><code>    &lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
     &lt;soap:Body&gt;
        &lt;soap:Fault&gt;
           &lt;faultcode&gt;soap:Client&lt;/faultcode&gt;
       &lt;faultstring&gt;Unmarshalling Error: For input string: "a"&lt;/faultstring&gt;
    &lt;/soap:Fault&gt;
  </code></pre>
  
  <p>
  </p>
  
  <p>My Question right now is. How can I catch the Unmarshalling Error, so that I can throw a generic error message instead of the unmarshalling error.</p>
  
  <p>I hope anyone can help me</p>