/** Returns the destination provider used by the gateway. */ public final DestinationProvider getDestinationProvider() { return webServiceTemplate.getDestinationProvider(); }
/** Returns the destination provider used by the gateway. */ public final DestinationProvider getDestinationProvider() { return webServiceTemplate.getDestinationProvider(); }
/** Returns the destination provider used by the gateway. */ public final DestinationProvider getDestinationProvider() { return webServiceTemplate.getDestinationProvider(); }
/** Returns the destination provider used by the gateway. */ public final DestinationProvider getDestinationProvider() { return webServiceTemplate.getDestinationProvider(); }
public Object invoke(MethodInvocation arg0) throws Throwable { if(arg0.getArguments().length != 1) { throw new ClientItcbException(ClientItcbExceptionMappingErrors.COMMON_CLIENT_NOT_CORRECT_INTERFACE, messageSource.getMessage("common-client.exception.not_correct_interface", new Object[] {arg0.getMethod()}, LocaleContextHolder.getLocale())); } try { return getWebServiceTemplate().marshalSendAndReceive(arg0.getArguments()[0]); } catch (CommonItcbException cie) { throw cie; } catch (SoapFaultClientException sfce) { logger.error(sfce.getFaultCode(), sfce); throw new ClientItcbException(ClientItcbExceptionMappingErrors.COMMON_CLIENT_TECHNICAL_ERROR, messageSource.getMessage("common-client.exception.technical_error", new Object[] {arg0.getMethod(), getWebServiceTemplate().getDestinationProvider().getDestination(), sfce.getMessage()}, LocaleContextHolder.getLocale()), sfce); } catch(java.lang.Throwable e) { logger.error(e.getMessage(), e); if(getInterceptors() != null) { for (ClientInterceptorTransportExceptionListener clientInterceptor : clientInterceptorTransportExceptionListener) { clientInterceptor.handleTransportException(e, arg0.getArguments()[0]); } } throw new ClientItcbException(ClientItcbExceptionMappingErrors.COMMON_CLIENT_TECHNICAL_ERROR, messageSource.getMessage("common-client.exception.technical_error", new Object[] {arg0.getMethod(), getWebServiceTemplate().getDestinationProvider().getDestination(), e.getMessage()}, LocaleContextHolder.getLocale()), e); } }
throw new ClientItcbException(ClientItcbExceptionMappingErrors.COMMON_CLIENT_TECHNICAL_ERROR, messageSource.getMessage("common-client.exception.technical_error", new Object[] {arg0.getMethod(), getWebServiceTemplate().getDestinationProvider().getDestination()}, LocaleContextHolder.getLocale())); throw new ClientItcbException(ClientItcbExceptionMappingErrors.COMMON_CLIENT_TECHNICAL_ERROR, messageSource.getMessage("common-client.exception.technical_error", new Object[] {arg0.getMethod(), getWebServiceTemplate().getDestinationProvider().getDestination()}, LocaleContextHolder.getLocale()));
throw new ClientItcbException(ClientItcbExceptionMappingErrors.COMMON_CLIENT_TECHNICAL_ERROR, messageSource.getMessage("common-client.exception.technical_error", new Object[] {arg0.getMethod(), getWebServiceTemplate().getDestinationProvider().getDestination(), sfce.getMessage()}, LocaleContextHolder.getLocale()), sfce); throw new ClientItcbException(ClientItcbExceptionMappingErrors.COMMON_CLIENT_TECHNICAL_ERROR, messageSource.getMessage("common-client.exception.technical_error", new Object[] {arg0.getMethod(), getWebServiceTemplate().getDestinationProvider().getDestination(), e.getMessage()}, LocaleContextHolder.getLocale()), e);