|
|
Hi,
Suppose that I have a web service that I want to dynamically create other web services from...
For instance, based on metadata, I'd like to generate a wsdl/schema at runtime at any given time and be able to deploy this new service such that it is ready to receive incoming requests. I can generate the implementation to go along with the generated wsdl/schema, but I'm wondering if it is possible to deploy such a dynamic service in the spring framework.
As an example I am already doing this is J2EE. I have a JAX-RPC web service that is deployed as an EAR. It can generate the necessary artifacts and WAR/EAR them together to create new web services. Additionally, I can deploy the new EAR to the container immediately so that it is ready to receive incoming requests.
Is this scenario possible with the spring framework? I'm not sure that I have the ablity to create a new implementation and endpoint mapping for it and inject it into the spring context at runtime. Even if I was, I'm not sure if it is possible to persist such changes.
Thanks for any insight.
--Tony
It is possible in Spring-WS.
Basically the WsdlDefinition is an interface, so you can create any type you want, even generated at runtime.
The rest of Spring-WS is so flexible that it should be possible to do as well. You could, for instance, create your own EndpointMapping that checks a specific file location, and uses the code found there. A meta-mapping in a way. |
|