title: JAXB not unmarshalling xml any element to JAXBElement
body: <p>I have a webservice call.  In my response when I try to get the xml <code>any</code> element in to a JAXBElement it throws an error. </p>
  
  <p>In the schema I have:</p>
  
  <pre><code>&lt;xs:complexType name="InputType"&gt;
      &lt;xs:annotation&gt;&lt;/xs:annotation&gt;
      &lt;xs:sequence&gt;           
          &lt;xs:element name="Id" type="xs:string" /&gt;
          &lt;xs:any namespace="##any" processContents="lax" minOccurs="0" /&gt;
      &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  </code></pre>
  
  <p>The code I am using:</p>
  
  <pre><code>Object obj = inputType.getAny();
  Object o = ((JAXBElement)obj).getValue(); 
  </code></pre>
  
  <p>This line throws the error: <code>org.apache.xerces.dom.ElementNSImpl incompatible with javax.xml.bind.JAXBElement</code> error in soap ui.</p>
  
  <p>Why doesn't it covert to JAXBElement?  How do I make it work?</p>