title: Creating a Springboot Web Service SOAP client
body: <p>I am creating a simple Springboot application (1.5.2) with a dependency on <code>springboot-starter-web-services</code>.</p>
  
  <p>I have the WSDL for the service I need to consume and have generated all of the classes by using wsimport. One thing I noticed was the generated classes includes an interface with all of the remote methods &amp; their annotations.</p>
  
  <p>My question, <em>should I be using this interface? If so, how do I configure spring to use it?</em></p>
  
  <p>I followed the <a href="https://spring.io/guides/gs/consuming-web-service/" rel="nofollow noreferrer">Springboot tutorial found here</a> but do not see this generated interface class mentioned anywhere. I attempted to call the webservice just like the tutorial says, but I am getting an error such as "The endpoint reference (EPR) for the operation not found is "<a href="http://mydefaulturi.com" rel="nofollow noreferrer">http://mydefaulturi.com</a>" and the WSA action ="</p>
  
  <p>The generated interface has all of the methods the webservice supports as well as some annotations such as <code>@WebMethod</code>, <code>@WebResult</code>, <code>@RequestWrapper</code> &amp; <code>@ResponseWrapper</code>. I suspect these annotations are required at the client end when making the request, but I am not using this interface.</p>