I have the following XML as my JAX-WS web service response:
<soapenv:Envelope>
<soapenv:Header/>
<soapenv:Body>
<QueryRBTReqMsgResponse>
<QueryRBTRspMsg>
<resultHeader>
<resultCode>0</resultCode>
<resultDesc>Successful</resultDesc>
</resultHeader>
<!--Optional:-->
<QueryRBTResponse>
<part>1</part>
</QueryRBTResponse>
</QueryRBTRspMsg>
</QueryRBTReqMsgResponse>
</soapenv:Body>
</soapenv:Envelope>
But this is what I want:
<soapenv:Envelope>
<soapenv:Header/>
<soapenv:Body>
<QueryRBTRspMsg>
<resultHeader>
<resultCode>0</resultCode>
<resultDesc>Successful</resultDesc>
</resultHeader>
<!--Optional:-->
<QueryRBTResponse>
<part>1</part>
</QueryRBTResponse>
</QueryRBTRspMsg>
</soapenv:Body>
</soapenv:Envelope>
How can I remove the <QueryRBTReqMsgResponse>
tag from my response? I tried too many changes but none of them did the job!!!