Search code examples
spring-ws

Using spring-ws with already existing WSDL


I am new to spring-ws. what ever tutorial i see starts with xsd and at the end generates a wsdl. What is the approach when we have already an existing wsdl.

Also i was having a doubt on contract first approach which is already discussed (though am not getting convinced with the answer)

spring-ws and contract-first approach

My assignment is to use spring-ws with an existing wsdl. can you please provide me an approach for this.

As per my understanding. In the process of contract first approach, I got the contract already so how to proceed further is not shown in any tutorial.


Solution

  • Actually spring does support both static and dynamic wsdl. But each comes with different challenges. As from what i have seen, spring works on a notion of pattern matching when comes to generating a wsdl dynamically from a xsd. Like "Request" string which says input and "Response" means output. Now here is a problem where the spring generates a wsdl with synchronous responses. If our requirement is to have asynchronous response then the dynamic wsdl wont work.

    To overcome this, we can use the static wsdl and let spring know not to generate wsdl dynamically.