title: Get Strings from SOAP Message in Java
body: <p>How can I get specific parts from a SOAP message and get their values?</p>
  
  <p>For example, if the <code>.wsdl</code> message is this:</p>
  
  <pre><code>&lt;wsdl:message name="theRequest"&gt;
        &lt;wsdl:part name="username" type="xsd:string"/&gt;
        &lt;wsdl:part name="password" type="xsd:string"/&gt;
        &lt;wsdl:part name="someMsg"  type="xsd:string"/&gt;
  &lt;/wsdl:message&gt;
  </code></pre>
  
  <p>I want to get <code>someMsg</code> value and save it into a String variable.</p>
  
  <p>I was looking at this: <a href="https://stackoverflow.com/questions/31355100/get-soapbody-element-value">Get SoapBody Element value</a>, but didn't really understand much. If someone could provide an explanation or any kind of guide it would be really appreciated!</p>