"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:");
<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"/>