Java – Use the Spring Framework to use SOAP Web services without WSDL

Use the Spring Framework to use SOAP Web services without WSDL… here is a solution to the problem.

Use the Spring Framework to use SOAP Web services without WSDL

I have to call a Web service located at http://ip:port/ws, which doesn’t have a wsdl.

I can use Spring Framework’s RestTemplate to send an HTTP POST and get the answer from the service as raw input. But it’s a bit annoying, which is why I’m looking for the right way to use this web service without WSDL.

Can someone suggest a “best practice” approach to this task?

Solution

There really is no best practice, and recreating the WSDL or at least the XML schema seems to be the only option to improve the current approach.

Related Problems and Solutions