title: Getting Null Values while testing SOAP Web Service using SOAP UI
body: <p>I am trying to test SOAP Web Service using SOAP UI. but getting null values even passing those in soap ui while accessing parameters of request in our java method which has mapped endpoint to the operation.</p>
  
  <p>Please find the code as below:</p>
  
  <pre><code>    @PayloadRoot(namespace = NAMESPACE_URI, localPart = "UserList")
          @ResponsePayload
          public JAXBElement&lt;UserListResponse&gt; UserListRequest(@RequestPayload JAXBElement&lt;UserListRequest&gt; request) throws Exception {
  
              System.out.println("Enters into UserList()");
  
              try {
  
  
                  UserListRequest userListRequest = request.getValue();
  
  
  
     System.out.println("Number:"+userListRequest.getNumber());//Getting Number is null even passing passing in SOAP UI
  
  
  
        System.out.println("ID:"+userListRequest.getHeader().getCorrelationID()); //Here also getting java.lang.NullPointerException
  //As i am not getting why soap Ui values are not binding and object reference is coming to userListRequest.
                  if(userListRequest.getReference().equals("C")) {
                      userListRequest.setNumber(userListRequest.getNumber());
                  }
              }
              catch(Exception e) {
                  e.printStackTrace();
              }
              return null;
          }
  </code></pre>
  
  <p>Request XML:</p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:prim="http://COM.SERVICES.WebServices/UserServices"&gt;
     &lt;soapenv:Header/&gt;
     &lt;soapenv:Body&gt;
        &lt;prim:UserList&gt;
           &lt;!--Optional:--&gt;
           &lt;prim:XMLRequest&gt;
              &lt;!--Optional:--&gt;
              &lt;prim:Header&gt;
                 &lt;!--Optional:--&gt;
                 &lt;prim:MessageID&gt;2&lt;/prim:MessageID&gt;
                 &lt;!--Optional:--&gt;
                 &lt;prim:CorrelationID&gt;2&lt;/prim:CorrelationID&gt;
                 &lt;!--Optional:--&gt;
                 &lt;prim:SystemID&gt;2&lt;/prim:SystemID&gt;
                 &lt;!--Optional:--&gt;
                 &lt;prim:RequestorID&gt;2&lt;/prim:RequestorID&gt;
              &lt;/prim:Header&gt;
              &lt;prim:Reference&gt;C&lt;/prim:Reference&gt;
              &lt;!--Optional:--&gt;
              &lt;prim:Number&gt;1120521877477751&lt;/prim:Number&gt;
              &lt;!--Optional:--&gt;
              &lt;prim:Usercount&gt;51&lt;/prim:Usercount&gt;
           &lt;/prim:XMLRequest&gt;
        &lt;/prim:UserList&gt;
     &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>I am unable to get why it is giving null . Can anyone please help me on this issue to resolve.</p>