MessageFactory mf = MessageFactory.newInstance( );
SOAPMessage soapm = mf.createMessage( );
//put XMLbean into SOAPBody
soapm.getSOAPBody( ).addDocument( (org.w3c.dom.Document) sdom.newDomNode( ) );
SOAPMessage subscribeResponse = sconn.call( soapm,
epr.getAddress( ).toString( ) );
java.io.ByteArrayOutputStream os = new java.io.ByteArrayOutputStream( );
subscribeResponse.writeTo( os );
EnvelopeDocument sres =
EnvelopeDocument.Factory.parse( new java.io.ByteArrayInputStream( os.toByteArray( ) ) );