title: how to fix while converting xml to java object is response null
body: <p>Hi guys i am trying to convert soap xml to java classes fields but response gives null values into targeted class fields. I haven't worked with soap before, I work with soap for the first time, so I did a bit of google in 2 days and tried to use it. Attached screenshots from intellij debug</p>
  <p><img src="https://i.stack.imgur.com/hiEGx.png" alt="debuging-screenshots" /></p>
  <p>It is a SOAP XML file. In fact this is the value of xml that comes to me as a response from another API because I got it via SOAPUI because I had a request for it. So I tried to convert this xml in a new project without working on a real project. I also mentioned the classes in this project below</p>
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
          &lt;soapenv:Body&gt;
              &lt;ns1:queryTransactionHistoryResponse soapenv:encodingStyle=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot; xmlns:ns1=&quot;urn:IssuingWS/binding&quot;&gt;
                  &lt;ResponseInfo&gt;
                      &lt;response_code&gt;0&lt;/response_code&gt;
                      &lt;error_description xsi:nil=&quot;true&quot;/&gt;
                      &lt;error_action xsi:nil=&quot;true&quot;/&gt;
                      &lt;EXTERNAL_SESSION_ID&gt;TEST111_20211111111111212201191210111511&lt;/EXTERNAL_SESSION_ID&gt;
                  &lt;/ResponseInfo&gt;
                  &lt;Details&gt;
                      &lt;row&gt;
                          &lt;item&gt;
                              &lt;name&gt;CARD_ACCT&lt;/name&gt;
                              &lt;value&gt;0901095000004266&lt;/value&gt;
                          &lt;/item&gt;
                          &lt;item&gt;
                              &lt;name&gt;ACCOUNT_NO&lt;/name&gt;
                              &lt;value&gt;8186&lt;/value&gt;
                          &lt;/item&gt;
                          &lt;item&gt;
                              &lt;name&gt;CL_ACCT_KEY&lt;/name&gt;
                              &lt;value&gt;8096&lt;/value&gt;
                          &lt;/item&gt;
                          &lt;item&gt;
                              &lt;name&gt;CLIENT&lt;/name&gt;
                              &lt;value&gt;00003660&lt;/value&gt;
                          &lt;/item&gt;           
                    
                      &lt;/row&gt;  
                      &lt;row&gt;
                          &lt;item&gt;
                              &lt;name&gt;CARD2_ACCT&lt;/name&gt;
                              &lt;value&gt;0901095000004266&lt;/value&gt;
                          &lt;/item&gt;
                          &lt;item&gt;
                              &lt;name&gt;ACCOUNTSSO&lt;/name&gt;
                              &lt;value&gt;8186&lt;/value&gt;
                          &lt;/item&gt;
                          &lt;item&gt;
                              &lt;name&gt;CL_ACCT_KEY22&lt;/name&gt;
                              &lt;value&gt;8096&lt;/value&gt;
                          &lt;/item&gt;
                          &lt;item&gt;
                              &lt;name&gt;SOMENAME&lt;/name&gt;
                              &lt;value&gt;00003660&lt;/value&gt;
                          &lt;/item&gt; 
                    
                      &lt;/row&gt;           
                  &lt;/Details&gt;
              &lt;/ns1:queryTransactionHistoryResponse&gt;
          &lt;/soapenv:Body&gt;
      &lt;/soapenv:Envelope&gt;
  </code></pre>
  <p>It is rootclass parent class got it from the name after <code>ns1</code> in the XML, but I don't know if the situation I'm using is correct and one of the things I don't understand is the <code>xmlns</code>.</p>
  <pre><code>package uz.paynet.test.Xml;
  
  import lombok.ToString;
  
  import javax.xml.bind.annotation.*;
  
  @ToString
  @XmlRootElement(namespace = &quot;urn:IssuingWS/binding&quot;)
  @XmlAccessorType(XmlAccessType.FIELD)
  @XmlType(name = &quot;queryTransactionHistoryResponse&quot;)
  public class QueryTransactionHistoryResponse {
      @XmlElement(name = &quot;ResponseInfo&quot;, required = true,nillable = true)
      private ResponseInfo responseInfo;
  
      @XmlElement(name = &quot;Details&quot;, required = true,nillable = true)
      private Details details;
  
      public QueryTransactionHistoryResponse() {
      }
  
      public QueryTransactionHistoryResponse(ResponseInfo responseInfo, Details details) {
          this.responseInfo = responseInfo;
          this.details = details;
      }
  
      public ResponseInfo getResponseInfo() {
          return responseInfo;
      }
  
      public void setResponseInfo(ResponseInfo responseInfo) {
          this.responseInfo = responseInfo;
      }
  
      public Details getDetails() {
          return details;
      }
  
      public void setDetails(Details details) {
          this.details = details;
      }
  }
  </code></pre>
  <p><strong>it is my ResponseInfo class but this class get value you show on screenshop</strong></p>
  <pre><code>package uz.paynet.test.Xml;
  
  import javax.xml.bind.annotation.XmlAccessType;
  import javax.xml.bind.annotation.XmlAccessorType;
  import javax.xml.bind.annotation.XmlElement;
  
  @XmlAccessorType(XmlAccessType.FIELD)
  public class ResponseInfo{
  
      @XmlElement(name = &quot;response_code&quot;)
      private int responseCode;
  
      @XmlElement(name = &quot;error_description&quot;,nillable = true)
      private String errorDescription;
  
      @XmlElement(name=&quot;error-action&quot;,nillable = true)
      private String errorAction;
  
      @XmlElement(name = &quot;EXTERNAL_SESSION_ID&quot;)
      private String externalSessionId;
  
      public ResponseInfo(int responseCode, String errorDescription, String errorAction, String externalSessionId) {
          this.responseCode = responseCode;
          this.errorDescription = errorDescription;
          this.errorAction = errorAction;
          this.externalSessionId = externalSessionId;
      }
  
      public ResponseInfo() {
      }
  
      public int getResponseCode() {
          return responseCode;
      }
  
      public void setResponseCode(int responseCode) {
          this.responseCode = responseCode;
      }
  
      public String getErrorDescription() {
          return errorDescription;
      }
  
      public void setErrorDescription(String errorDescription) {
          this.errorDescription = errorDescription;
      }
  
      public String getErrorAction() {
          return errorAction;
      }
  
      public void setErrorAction(String errorAction) {
          this.errorAction = errorAction;
      }
  
      public String getExternalSessionId() {
          return externalSessionId;
      }
  
      public void setExternalSessionId(String externalSessionId) {
          this.externalSessionId = externalSessionId;
      }
  }
  </code></pre>
  <p><strong>this is Details class which Covers Row class</strong></p>
  <pre><code>package uz.paynet.test.Xml;
  
  import javax.xml.bind.annotation.XmlAccessType;
  import javax.xml.bind.annotation.XmlAccessorType;
  import javax.xml.bind.annotation.XmlElement;
  import java.util.List;
  
  @XmlAccessorType(XmlAccessType.FIELD)
  public class Details{
  
      @XmlElement(name = &quot;row&quot;)
      List&lt;Row&gt; rowList;
  
      public Details() {
      }
  
      public Details(List&lt;Row&gt; rowList) {
          this.rowList = rowList;
      }
  
      public List&lt;Row&gt; getRowList() {
          return rowList;
      }
  
      public void setRowList(List&lt;Row&gt; rowList) {
          this.rowList = rowList;
      }
  }
  </code></pre>
  <p><strong>and last is Row class which covered value and name
  which i need to get xml value and name</strong></p>
  <pre><code>package uz.paynet.test.Xml;
  
  import javax.xml.bind.annotation.*;
  import java.io.Serializable;
  
  
  @XmlAccessorType(XmlAccessType.FIELD)
  @XmlRootElement(namespace = &quot;urn:IssuingWS/binding&quot;)
  public class Row {
  
      @XmlElement(name = &quot;name&quot;)
      public String name;
  
      @XmlElement(name = &quot;value&quot;)
      private String value;
  
      public Row(String name, String value) {
          this.name = name;
          this.value = value;
      }
  
      public Row() {
      }
  
      public String getName() {
          return name;
      }
  
      public void setName(String name) {
          this.name = name;
      }
  
      public String getValue() {
          return value;
      }
  
      public void setValue(String value) {
          this.value = value;
      }
  }
  </code></pre>