de.jonashackt.tutorial.configuration.WebServiceConfiguration类的使用及代码示例

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

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

WebServiceConfiguration介绍

暂无

代码示例

代码示例来源:origin: jonashackt/tutorial-soap-spring-boot-cxf

  1. @Bean
  2. public Endpoint endpoint() {
  3. EndpointImpl endpoint = new EndpointImpl(springBus(), weatherService());
  4. // CXF JAX-WS implementation relies on the correct ServiceName as QName-Object with
  5. // the name-Attribute´s text <wsdl:service name="Weather"> and the targetNamespace
  6. // "http://www.codecentric.de/namespace/weatherservice/"
  7. // Also the WSDLLocation must be set
  8. endpoint.setServiceName(weather().getServiceName());
  9. endpoint.setWsdlLocation(weather().getWSDLDocumentLocation().toString());
  10. endpoint.publish(SERVICE_URL);
  11. return endpoint;
  12. }

代码示例来源:origin: jonashackt/tutorial-soap-spring-boot-cxf

  1. @Bean(name = Bus.DEFAULT_BUS_ID)
  2. public SpringBus springBus() {
  3. SpringBus springBus = new SpringBus();
  4. springBus.getInInterceptors().add(logInInterceptor());
  5. springBus.getInFaultInterceptors().add(logInInterceptor());
  6. springBus.getOutInterceptors().add(logOutInterceptor());
  7. springBus.getOutFaultInterceptors().add(logOutInterceptor());
  8. return springBus;
  9. }

代码示例来源:origin: jonashackt/tutorial-soap-spring-boot-cxf

  1. @Bean
  2. public Endpoint endpoint() {
  3. EndpointImpl endpoint = new EndpointImpl(springBus(), weatherService());
  4. // CXF JAX-WS implementation relies on the correct ServiceName as QName-Object with
  5. // the name-Attribute´s text <wsdl:service name="Weather"> and the targetNamespace
  6. // "http://www.codecentric.de/namespace/weatherservice/"
  7. // Also the WSDLLocation must be set
  8. endpoint.setServiceName(weather().getServiceName());
  9. endpoint.setWsdlLocation(weather().getWSDLDocumentLocation().toString());
  10. endpoint.publish(SERVICE_URL);
  11. endpoint.getOutFaultInterceptors().add(soapInterceptor());
  12. return endpoint;
  13. }

代码示例来源:origin: jonashackt/tutorial-soap-spring-boot-cxf

  1. @Bean
  2. public Endpoint endpoint() {
  3. EndpointImpl endpoint = new EndpointImpl(springBus(), weatherService());
  4. endpoint.publish("/WeatherSoapService_1.0");
  5. endpoint.setWsdlLocation("Weather1.0.wsdl");
  6. return endpoint;
  7. }
  8. }

代码示例来源:origin: stackoverflow.com

  1. EndpointImpl endpoint = new EndpointImpl(springBus(), weatherService());
  2. endpoint.publish("/WeatherSoapService");
  3. return endpoint;

代码示例来源:origin: jonashackt/tutorial-soap-spring-boot-cxf

  1. @Bean
  2. public Endpoint endpoint() {
  3. EndpointImpl endpoint = new EndpointImpl(springBus(), weatherService());
  4. // CXF JAX-WS implementation relies on the correct ServiceName as QName-Object with
  5. // the name-Attribute´s text <wsdl:service name="Weather"> and the targetNamespace
  6. // "http://www.codecentric.de/namespace/weatherservice/"
  7. // Also the WSDLLocation must be set
  8. endpoint.setServiceName(weather().getServiceName());
  9. endpoint.setWsdlLocation(weather().getWSDLDocumentLocation().toString());
  10. endpoint.publish(SERVICE_URL);
  11. return endpoint;
  12. }

代码示例来源:origin: jonashackt/tutorial-soap-spring-boot-cxf

  1. @Bean(name = Bus.DEFAULT_BUS_ID)
  2. public SpringBus springBus() {
  3. SpringBus springBus = new SpringBus();
  4. springBus.getInInterceptors().add(logInInterceptor());
  5. springBus.getInFaultInterceptors().add(logInInterceptor());
  6. springBus.getOutInterceptors().add(logOutInterceptor());
  7. springBus.getOutFaultInterceptors().add(logOutInterceptor());
  8. return springBus;
  9. }

代码示例来源:origin: jonashackt/tutorial-soap-spring-boot-cxf

  1. @Bean
  2. public Endpoint endpoint() {
  3. EndpointImpl endpoint = new EndpointImpl(springBus(), weatherService());
  4. // CXF JAX-WS implementation relies on the correct ServiceName as QName-Object with
  5. // the name-Attribute´s text <wsdl:service name="Weather"> and the targetNamespace
  6. // "http://www.codecentric.de/namespace/weatherservice/"
  7. // Also the WSDLLocation must be set
  8. endpoint.setServiceName(weather().getServiceName());
  9. endpoint.setWsdlLocation(weather().getWSDLDocumentLocation().toString());
  10. endpoint.publish(SERVICE_URL);
  11. return endpoint;
  12. }

代码示例来源:origin: jonashackt/tutorial-soap-spring-boot-cxf

  1. @Bean(name = Bus.DEFAULT_BUS_ID)
  2. public SpringBus springBus() {
  3. SpringBus springBus = new SpringBus();
  4. springBus.getInInterceptors().add(logInInterceptor());
  5. springBus.getInFaultInterceptors().add(logInInterceptor());
  6. springBus.getOutInterceptors().add(logOutInterceptor());
  7. springBus.getOutFaultInterceptors().add(logOutInterceptor());
  8. return springBus;
  9. }

代码示例来源:origin: jonashackt/tutorial-soap-spring-boot-cxf

  1. @Bean
  2. public Endpoint endpoint() {
  3. EndpointImpl endpoint = new EndpointImpl(springBus(), weatherService());
  4. // CXF JAX-WS implementation relies on the correct ServiceName as QName-Object with
  5. // the name-Attribute´s text <wsdl:service name="Weather"> and the targetNamespace
  6. // "http://www.codecentric.de/namespace/weatherservice/"
  7. // Also the WSDLLocation must be set
  8. endpoint.setServiceName(weather().getServiceName());
  9. endpoint.setWsdlLocation(weather().getWSDLDocumentLocation().toString());
  10. endpoint.publish("/WeatherSoapService_1.0");
  11. return endpoint;
  12. }

代码示例来源:origin: jonashackt/tutorial-soap-spring-boot-cxf

  1. @Bean
  2. public Endpoint endpoint() {
  3. EndpointImpl endpoint = new EndpointImpl(springBus(), weatherService());
  4. // CXF JAX-WS implementation relies on the correct ServiceName as QName-Object with
  5. // the name-Attribute´s text <wsdl:service name="Weather"> and the targetNamespace
  6. // "http://www.codecentric.de/namespace/weatherservice/"
  7. // Also the WSDLLocation must be set
  8. endpoint.setServiceName(weather().getServiceName());
  9. endpoint.setWsdlLocation(weather().getWSDLDocumentLocation().toString());
  10. endpoint.publish(SERVICE_URL);
  11. return endpoint;
  12. }

代码示例来源:origin: jonashackt/tutorial-soap-spring-boot-cxf

  1. @Bean
  2. public Endpoint endpoint() {
  3. EndpointImpl endpoint = new EndpointImpl(springBus(), weatherService());
  4. // CXF JAX-WS implementation relies on the correct ServiceName as QName-Object with
  5. // the name-Attribute´s text <wsdl:service name="Weather"> and the targetNamespace
  6. // "http://www.codecentric.de/namespace/weatherservice/"
  7. // Also the WSDLLocation must be set
  8. endpoint.setServiceName(weather().getServiceName());
  9. endpoint.setWsdlLocation(weather().getWSDLDocumentLocation().toString());
  10. endpoint.publish(SERVICE_URL);
  11. LoggingFeature logFeature = new LoggingFeature();
  12. logFeature.setPrettyLogging(true);
  13. logFeature.initialize(springBus());
  14. endpoint.getFeatures().add(logFeature);
  15. return endpoint;
  16. }

相关文章