I am running a script running in Rhino, which creates an E4X object like this:
var s = <product id="123">
<name>Google Search</name>
<source>https://google.com</source>
</product>
I want to include such XML in a SOAP message. I am using Apache Axis 2 ServiceClient for creating soap message. What I am looking for is a way to convert the E4X xml object into an Apache AXIOM element so that it can be added to SOAP message via a call to:
ServiceClient.addHeader(org.apache.axiom.om.OMElement omElement)