title: How to append JAXBElement as a child of SOAPBody for a SOAP Message
body: <p>How to append JAXBElement as a child of SOAPBody for a SOAP Message. What i am trying to do inside my web service endpoint method is:</p>
  
  <pre><code>    SaajSoapMessage soapRequest = (SaajSoapMessage) messageContext.getRequest();
      SOAPBody soapBody=soapRequest.getSaajMessage().getSOAPBody();
      ObjectFactory of=new ObjectFactory();
      SplsTID tid=new SplsTID();
      JAXBElement&lt;SplsTID&gt; element=of.createSplsTID(tid);
      element.soapBody.appendChild(element);
  </code></pre>
  
  <p>Then i get the <code>java.lang.ClassCastException: javax.xml.bind.JAXBElement cannot be cast to org.w3c.dom.Element</code>.</p>
  
  <p>I am working spring-WS and using jaxb marshaller. How can we do this?</p>