From 9c51896e1f37095283f8caa7fe4a329381b8c067 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Sun, 20 Dec 2015 02:00:18 +0100 Subject: [PATCH] jaxb2: fixing errors in client --- .../java/de/spring/webservices/client/ExampleClientService.java | 2 +- .../src/main/java/de/spring/webservices/client/MainTest.java | 2 +- .../spring-configuration/ws/client-spring-configuration.xml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/jaxb2/web-services-spring-jaxb2-client/src/main/java/de/spring/webservices/client/ExampleClientService.java b/jaxb2/web-services-spring-jaxb2-client/src/main/java/de/spring/webservices/client/ExampleClientService.java index 309a461..25179d9 100644 --- a/jaxb2/web-services-spring-jaxb2-client/src/main/java/de/spring/webservices/client/ExampleClientService.java +++ b/jaxb2/web-services-spring-jaxb2-client/src/main/java/de/spring/webservices/client/ExampleClientService.java @@ -17,7 +17,7 @@ import de.spring.webservices.auto.ExampleResponse; * information from our Web Services. * */ -@Service +@Service("exampleClientService") public class ExampleClientService { private final WebServiceTemplate webServiceTemplate; diff --git a/jaxb2/web-services-spring-jaxb2-client/src/main/java/de/spring/webservices/client/MainTest.java b/jaxb2/web-services-spring-jaxb2-client/src/main/java/de/spring/webservices/client/MainTest.java index a77f560..36f5de4 100644 --- a/jaxb2/web-services-spring-jaxb2-client/src/main/java/de/spring/webservices/client/MainTest.java +++ b/jaxb2/web-services-spring-jaxb2-client/src/main/java/de/spring/webservices/client/MainTest.java @@ -28,7 +28,7 @@ public class MainTest { "classpath:spring-configuration/ws/client-spring-configuration.xml"); final ExampleClientService example = - (ExampleClientService) test.context.getBean("exampleClient"); + (ExampleClientService) test.context.getBean("exampleClientService"); // maven-jaxb2-plugin DOESN'T CREATE @WebService, @WebServiceClient y @WebEndpoint // logger.info("ExampleResponse Java:"); diff --git a/jaxb2/web-services-spring-jaxb2-client/src/main/resources/spring-configuration/ws/client-spring-configuration.xml b/jaxb2/web-services-spring-jaxb2-client/src/main/resources/spring-configuration/ws/client-spring-configuration.xml index 7d43bae..4de6438 100644 --- a/jaxb2/web-services-spring-jaxb2-client/src/main/resources/spring-configuration/ws/client-spring-configuration.xml +++ b/jaxb2/web-services-spring-jaxb2-client/src/main/resources/spring-configuration/ws/client-spring-configuration.xml @@ -90,8 +90,8 @@ - - + + @@ -103,7 +103,7 @@