I'm having a problem on my work that I will need some help. I have a WebServiceTemplate configuration like below:
<bean id="serviceTest" class="org.springframework.ws.client.core.WebServiceTemplate">
<property name="marshaller" ref="jaxbMarshallerOpe" />
<property name="unmarshaller" ref="jaxbMarshallerOpe" />
<property name="messageSender">
<bean class="org.springframework.ws.transport.http.CommonsHttpMessageSender">
</bean>
</property>
<property name="interceptors">
<list>
<ref bean="soapMessageInterceptor" />
</list>
</property>
<property name="defaultUri" value="?????????????" />
<constructor-arg ref="messageFactory" />
</bean>
My perfect cenário is to replace value="?????????????" with some value from database or to put there a value from a variable on my application. Is there a way to do that?
I really need a dynamic way to put the WSDL address there, because my client can change the service. Not frequently, but it's a possibility.
Does anyone knows how I can achieve this?