There are several known issues related to MTOM (or more generally XOP) processing in Spring-WS.
There are two ways to implement web services: Spring has chosen to implement the contract-first approach.
They have,discussed this point in the Spring Web Services Reference in Chapter 2. To summarize, from their article, the key advantages to this approach are: In the schema we will model the entity classes and the messages that we wish to send through our SOAP service.
This is not just a missing detail in the documentation; the problem is that this method is both implemented and used inconsistently in Spring-WS itself: In the previous section we have seen that the problems with MTOM processing in Spring-WS are caused by a flaw in the design of the Spring-WS API.
There is therefore no easy fix and a proper solution will require changes to the API.
This installment will add a SOAP service but we will put off writing the client until the next article and in its place we will utilize an useful application called Soap UI to test our SOAP service.