NdsBeisEsb/src/main/java/com/northgateps/nds/beis/esb/updateemail/UpdateEmailInLdapAndBackOfficeAdapter.java
/**
     * Set up the request so that we can send a notification email to the new address.
     * 
     * @param exchange
     * @throws NdsApplicationException
     */
Set up the request so that we can send a notification email to the new address.

@param exchange
@throws NdsApplicationException
Set up the request so that we can send a notification email to the new address . @param exchange @throws NdsApplicationException
public void processRequest(Exchange exchange) throws NdsApplicationException {
        NdsSoapRequestAdapterExchangeProxyImpl ndsExchange = new NdsSoapRequestAdapterExchangeProxyImpl(exchange);
        UpdateEmailNdsRequest updateEmailNdsRequest;
        try {
            SaveRegisteredAccountDetailsNdsRequest ndsRequest = (SaveRegisteredAccountDetailsNdsRequest) ndsExchange.getRequestMessageBody(
                    SaveRegisteredAccountDetailsNdsRequest.class);
            ndsExchange.setAnExchangeProperty(NdsEmailAdapter.RESPONSE_TYPE, SaveRegisteredAccountDetailsNdsResponse.class.getName());
            TypeConverter converter = ndsExchange.getTypeConverter();
            updateEmailNdsRequest = converter.convertTo(UpdateEmailNdsRequest.class, ndsRequest);
        } catch (Exception e) {
            throw new NdsApplicationException("Error occurred during request conversion process:  " + e.getMessage(), e);
        }
        ndsExchange.setResponseMessageBodyWithHeaders(updateEmailNdsRequest, exchange.getIn().getHeaders());
    }
public void processRequest ( Exchange exchange ) throws NdsApplicationException { NdsSoapRequestAdapterExchangeProxyImpl ndsExchange = new NdsSoapRequestAdapterExchangeProxyImpl ( exchange ) ; UpdateEmailNdsRequest updateEmailNdsRequest ; try { SaveRegisteredAccountDetailsNdsRequest ndsRequest = ( SaveRegisteredAccountDetailsNdsRequest ) ndsExchange . getRequestMessageBody ( SaveRegisteredAccountDetailsNdsRequest . class ) ; ndsExchange . setAnExchangeProperty ( NdsEmailAdapter . RESPONSE_TYPE , SaveRegisteredAccountDetailsNdsResponse . class . getName ( ) ) ; TypeConverter converter = ndsExchange . getTypeConverter ( ) ; updateEmailNdsRequest = converter . convertTo ( UpdateEmailNdsRequest . class , ndsRequest ) ; } catch ( Exception e ) { throw new NdsApplicationException ( "Error occurred during request conversion process:  " + e . getMessage ( ) , e ) ; } ndsExchange . setResponseMessageBodyWithHeaders ( updateEmailNdsRequest , exchange . getIn ( ) . getHeaders ( ) ) ; }
Set up the request so that we can send a notification email to the new address.
Set up the request so that we can send a notification email to the new address .
// Create the type converter