From: Gustavo Martin Morcuende Date: Sun, 20 Dec 2015 01:00:18 +0000 (+0100) Subject: jaxb2: fixing errors in client X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=9c51896e1f37095283f8caa7fe4a329381b8c067;p=SpringWebServicesForFun%2F.git jaxb2: fixing errors in client --- 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 @@