...
We do this by adding the wsdlFile tag in the service element where we can point to the real .wsdl file.
Integrating Spring
Spring is integrated just as it would like to, we add its listener to the web.xml and a context parameter to be able to configure precisely what spring xml files to use:
Code Block | ||||
---|---|---|---|---|
| ||||
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:axis-example-context.xml
</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
|
Next is to add a plain spring XML file named axis-example-context.xml in the src/main/resources folder.
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
</beans>
|
The spring XML file is currently empty. We hit jetty again with mvn jetty:run
just to make sure Spring was setup correctly.