title: JAXB Unexpected Element
body: <p>I have a JAXB web service that does not expect the element Id to be passed across, and a client that passes that element anyhow.</p>
  
  <p>The version of the web service currently in production silently ignores that unexpected element, but the version in QA complains.  Tracing the XML of inbound requests, I confirmed the Id element is sent both to the production and QA versions of the service.</p>
  
  <p>The error message in QA is:</p>
  
  <blockquote>
    <p>org.apache.cxf.interceptor.Fault:
    Unmarshalling Error: unexpected
    element
    (uri:"<a href="http://mydomain.com/transaction" rel="nofollow noreferrer">http://mydomain.com/transaction</a>",
    local:"Id"). Expected elements are...</p>
  </blockquote>
  
  <p>The message is pretty clear, but the solution is not as the client is widely deployed.</p>
  
  <p>As a first step, I would like to try and understand why the production version accepts this extra element while the QA version does not.  There are not many differences between the two releases.</p>
  
  <p>Suggestions where to look?</p>