I am trying to configure JAX-WS Client to switch between a test / production point without having to regenerate proxy classes using wsimport again.
The service I'm trying to use uses various WSDLs for testing and production. For example, targetNamespace is different, as well as the address of soapAction.
I tried using Springs JaxWsPortProxyFactoryBean and was able to point to a different wsdl depending on the deployment environment, but even though I point to production, it still uses the WebMethod action tags from the test. I assume this is because they are hard-coded in the service interface, which was generated using wsimport pointing to test-wsdl.
Does anyone know if it's possible to switch between wsdls using different targetNamespace addresses and action addresses without re-generating the proxy?
source
share