org.springframework.ws.client.core.WebServiceTemplate.getDestinationProvider()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(133)

本文整理了Java中org.springframework.ws.client.core.WebServiceTemplate.getDestinationProvider()方法的一些代码示例,展示了WebServiceTemplate.getDestinationProvider()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebServiceTemplate.getDestinationProvider()方法的具体详情如下:
包路径:org.springframework.ws.client.core.WebServiceTemplate
类名称:WebServiceTemplate
方法名:getDestinationProvider

WebServiceTemplate.getDestinationProvider介绍

[英]Returns the destination provider used on operations that do not have a URI parameter.
[中]返回在没有URI参数的操作上使用的目标提供程序。

代码示例

代码示例来源:origin: spring-projects/spring-ws

  1. /** Returns the destination provider used by the gateway. */
  2. public final DestinationProvider getDestinationProvider() {
  3. return webServiceTemplate.getDestinationProvider();
  4. }

代码示例来源:origin: org.springframework.ws/org.springframework.ws

  1. /** Returns the destination provider used by the gateway. */
  2. public final DestinationProvider getDestinationProvider() {
  3. return webServiceTemplate.getDestinationProvider();
  4. }

代码示例来源:origin: org.springframework.ws/spring-ws-core

  1. /** Returns the destination provider used by the gateway. */
  2. public final DestinationProvider getDestinationProvider() {
  3. return webServiceTemplate.getDestinationProvider();
  4. }

代码示例来源:origin: apache/servicemix-bundles

  1. /** Returns the destination provider used by the gateway. */
  2. public final DestinationProvider getDestinationProvider() {
  3. return webServiceTemplate.getDestinationProvider();
  4. }

代码示例来源:origin: net.sf.itcb.common/itcb-common-client

  1. public Object invoke(MethodInvocation arg0) throws Throwable {
  2. if(arg0.getArguments().length != 1) {
  3. throw new ClientItcbException(ClientItcbExceptionMappingErrors.COMMON_CLIENT_NOT_CORRECT_INTERFACE, messageSource.getMessage("common-client.exception.not_correct_interface", new Object[] {arg0.getMethod()}, LocaleContextHolder.getLocale()));
  4. }
  5. try {
  6. return getWebServiceTemplate().marshalSendAndReceive(arg0.getArguments()[0]);
  7. }
  8. catch (CommonItcbException cie) {
  9. throw cie;
  10. }
  11. catch (SoapFaultClientException sfce) {
  12. logger.error(sfce.getFaultCode(), sfce);
  13. 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);
  14. }
  15. catch(java.lang.Throwable e) {
  16. logger.error(e.getMessage(), e);
  17. if(getInterceptors() != null) {
  18. for (ClientInterceptorTransportExceptionListener clientInterceptor : clientInterceptorTransportExceptionListener) {
  19. clientInterceptor.handleTransportException(e, arg0.getArguments()[0]);
  20. }
  21. }
  22. 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);
  23. }
  24. }

代码示例来源:origin: net.sf.itcb.common/common-client

  1. throw new ClientItcbException(ClientItcbExceptionMappingErrors.COMMON_CLIENT_TECHNICAL_ERROR, messageSource.getMessage("common-client.exception.technical_error", new Object[] {arg0.getMethod(), getWebServiceTemplate().getDestinationProvider().getDestination()}, LocaleContextHolder.getLocale()));
  2. throw new ClientItcbException(ClientItcbExceptionMappingErrors.COMMON_CLIENT_TECHNICAL_ERROR, messageSource.getMessage("common-client.exception.technical_error", new Object[] {arg0.getMethod(), getWebServiceTemplate().getDestinationProvider().getDestination()}, LocaleContextHolder.getLocale()));

代码示例来源:origin: net.sf.itcb.common/itcb-common-client

  1. 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);
  2. 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);

相关文章

WebServiceTemplate类方法