title: Why SOAP Request obj data going to Server from Client as Null in Spring Boot
body: <p>I am trying to consuming SOAP Webservices in SpringBoot maven project. SO i have generated classes using wsdl. I am trying to call the server and the client is able to hit server but the request data is going to the server as null. </p>
  
  <p>I am not getting why the request data is going to the server as null. please find the my code as below:</p>
  
  <pre><code>@PayloadRoot(namespace = Constants.NAMESPACE_URI, localPart = "StatementsList")
      @ResponsePayload
      public StatementsListResponse statementsListRequest(@RequestPayload StatementsList request) throws Exception {
  
          System.out.println("Enters into StatementsList()");
  
       //here is the Client call
          WSClient client = new WSClient();
          response = client.statementsListService(request.getXMLRequest());
  
          return response;
      }
  
  
  @Component
  public class WSClient extends WebServiceGatewaySupport{
  
     private ServicesSoapStub soapStub = null;
  
      @PostConstruct
      public void init() throws ServiceException {
          // will get invoked after all injections
  
  
          ServicesLocator sLocator = new ServicesLocator();
          ServicesSoapStub stub = (ServicesSoapStub) sLocator.getServicesSoap();
  
          soapStub = stub;
      }
  
    public  StatementsListResponse statementsListService(StatementsListRequest request)
              throws RemoteException, ServiceException {
  
              //Here i am able to print the request obj data and able to see the data as well.
          System.out.println("Enters into WSClient :: statementsListService()"); 
  
  
          return soapStub.statementsList(request);
  
      }
  }
  </code></pre>
  
  <p>SOAP UI Request:</p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:prim="http://***/Services"&gt;
     &lt;soapenv:Header/&gt;
     &lt;soapenv:Body&gt;
        &lt;prim:StatementsList&gt;
           &lt;!--Optional:--&gt;
           &lt;prim:XMLRequest&gt;
              &lt;!--Optional:--&gt;
              &lt;prim:Header&gt;
                 &lt;!--Optional:--&gt;
                 &lt;prim:MessageID&gt;1&lt;/prim:MessageID&gt;
                 &lt;!--Optional:--&gt;
                 &lt;prim:CorrelationID&gt;1&lt;/prim:CorrelationID&gt;
                 &lt;!--Optional:--&gt;
                 &lt;prim:SystemID&gt;1&lt;/prim:SystemID&gt;
                 &lt;!--Optional:--&gt;
                 &lt;prim:RequestorID&gt;1&lt;/prim:RequestorID&gt;
                 &lt;!--Optional:--&gt;
                 &lt;prim:InstitutionID&gt;1&lt;/prim:InstitutionID&gt;
              &lt;/prim:Header&gt;
              &lt;prim:Reference&gt;A&lt;/prim:Reference&gt;
              &lt;!--Optional:--&gt;
              &lt;prim:Number&gt;40000&lt;/prim:Number&gt;
           &lt;/prim:XMLRequest&gt;
        &lt;/prim:StatementsList&gt;
     &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>The above operation testing by using SOAP UI. and i am able to print the data of request obj which has passed from SOAP UI in above request obj.</p>
  
  <p>Can anyone please suggest why the request is going to the server as null.Is there any thing am doing worng here.Please suggest on this.</p>