title: I want to pass my custom object in soap body element , how to do it?
body: <p>I'm trying to call a webservice using JAXB SAAJ. I use wsdl2java to create web service objetcs. Now i would like to pass one of this object in soap call. How can I do this? I want to pass my custom object in soap body element , how to do it?</p>
  
  <p>My code:</p>
  
  <pre><code>SOAPBody soapbody = soapmessage.getSOAPBody();
  SOAPBodyElement element = soapbody.addBodyElement(soapbodyName);
  element.addChildElement(myCustomObject); &lt;-- it gives error here that I can not pass my object here.
  </code></pre>