title: Not able to print the XML Response from a SOAP webservice
body: <p>I am not able to print the response from a Soap Webservice.</p>
  
  <p>Seen few solutions by editing the generated stub code. But I cant edit the generated code as it gets restored to original form on every build. Looking for a solution where I can get the solution printed without change in generated code.</p>
  
  <p>I am consuming the SOAP service from a Spring Boot microservice.</p>
  
  <pre class="lang-java prettyprint-override"><code>ServiceContext serviceConxt = omsSchedulingService._getServiceClient().getServiceContext();
          OperationContext operationContext = serviceConxt.getLastOperationContext();
  MessageContext inMessageContext = operationContext.getMessageContext("Out");
  log.info(inMessageContext.getEnvelope().toString());
  </code></pre>