Add an extra tag or element in Soap Response using Jaxws
<p>I am developing one soap service using Spring-Cxf. here I have my response structure as below</p>

<pre><code>@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "response", propOrder = {
    "name",
    "addressList"
})
public class Response 
{

private String name;
private List&lt;Address&gt; addressList;
}

-- getter and setter follows
</code></pre>

<p>The current response is coming like</p>

<pre><code>&lt;response&gt;
   &lt;name&gt;RASSI ANDREA&lt;/name&gt;
   &lt;addressList type="1"&gt;
      &lt;address&gt;Address 1&lt;/address&gt;
      &lt;address&gt;Address 2&lt;/address&gt;
      &lt;address&gt;Address 3&lt;/address&gt;
   &lt;/addressList&gt;
   &lt;addressList type="2"&gt;
      &lt;address&gt;Address 4&lt;/address&gt;
      &lt;address&gt;Address 5&lt;/address&gt;
      &lt;address&gt;Address 6&lt;/address&gt;
   &lt;/addressList&gt;
&lt;/response&gt;
</code></pre>

<p>But the actual response structure I need is below where a new tag 'row' is added.</p>

<pre><code>&lt;response&gt;
   &lt;name&gt;RASSI ANDREA&lt;/name&gt;
   &lt;row&gt;
      &lt;addressList type="1"&gt;
         &lt;address&gt;Address 1&lt;/address&gt;
         &lt;address&gt;Address 2&lt;/address&gt;
         &lt;address&gt;Address 3&lt;/address&gt;
      &lt;/addressList&gt;
   &lt;/row&gt;
   &lt;row&gt;
      &lt;addressList type="2"&gt;
         &lt;address&gt;Address 4&lt;/address&gt;
         &lt;address&gt;Address 5&lt;/address&gt;
         &lt;address&gt;Address 6&lt;/address&gt;
      &lt;/addressList&gt;
   &lt;/row&gt;
&lt;/response&gt;
</code></pre>

<p>Can anyone explain me where should I make the change to achieve this ? Any change in annotation or Creating a new class as 'row'( though this will a bad approach I guess)</p>