jaxb2: fixing errors in client
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Sun, 20 Dec 2015 01:00:18 +0000 (02:00 +0100)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Sun, 20 Dec 2015 01:00:18 +0000 (02:00 +0100)
jaxb2/web-services-spring-jaxb2-client/src/main/java/de/spring/webservices/client/ExampleClientService.java
jaxb2/web-services-spring-jaxb2-client/src/main/java/de/spring/webservices/client/MainTest.java
jaxb2/web-services-spring-jaxb2-client/src/main/resources/spring-configuration/ws/client-spring-configuration.xml

index 309a461..25179d9 100644 (file)
@@ -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;
 
index a77f560..36f5de4 100644 (file)
@@ -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:");
index 7d43bae..4de6438 100644 (file)
@@ -90,8 +90,8 @@
         <property name="marshaller" ref="marshaller" />
         <property name="unmarshaller" ref="marshaller" />
 
-        <!-- For local deployments change to http://localhost:8080/web-services-spring-server/spring-ws/example -->
-        <property name="defaultUri" value="http://gumartinm.name/spring-ws/example"/>
+        <!-- For local deployments change to http://localhost:8080/web-services-spring-jaxb2-server/spring-ws/example/example.wsdl -->
+        <property name="defaultUri" value="http://gumartinm.name/spring-ws/example/example.wsdl"/>
 
         <property name="interceptors">
             <list>
     <!--
     Using @Service and @Autowired
     We could use just XML configuration, or XML confirguration and @Autowired or as I am doing now @Service and @Autowired.
-    <bean id="exampleClient" class="de.spring.webservices.client.ExampleClientService">
+    <bean id="exampleClientService" class="de.spring.webservices.client.ExampleClientService">
         
         @Autowired works even using XML configuration as long as you use context:component-scan
         <property name="webServiceTemplate" ref="webServiceTemplate"/>