{
LOG.info( "ForwardConsumer :" + this.epr.getAddress( ) );
try
{
//now call
wsaSOAPConnection sconn = wsaSOAPConnection.newInstance( );
MessageFactory mf = MessageFactory.newInstance( );
SOAPMessage soapm = mf.createMessage( );
//DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
//org.w3c.dom.Document dom = builder.parse(new java.io.ByteArrayInputStream(((String) message).getBytes()));
//put Message into SOAPBody
if ( subscription.getUseNotify( ) == true )
{
SOAPElement se =
soapm.getSOAPBody( ).addChildElement( "http://schemas.xmlsoap.org/ws/2004/08/eventing", "Notify" );
se.addChildElement( (SOAPElement) ( (org.apache.axis.message.SOAPBody) message ).getChildElements( )
.next( ) );
}
else
{
soapm.getSOAPBody( ).addChildElement( (SOAPElement) ( (org.apache.axis.message.SOAPBody) message ).getChildElements( )
.next( ) );
}
sconn.call( soapm, epr );
}
catch ( Exception e )
{
e.printStackTrace( );
}