I have a webservice that returns the following response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns2:ZCuadre_ConSolResponse xmlns:ns2="http://sap.ws.xxxxx.com/">
<return>
<coemp>XXXXX</coemp>
<fecon xsi:type="xs:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema">XXXXX</fecon>
<ejerc>XXXXX</ejerc>
<perio>XXXXX</perio>
<nucta>XXXXX</nucta>
<ledger>XXXXX</ledger>
<saldo xsi:type="xs:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema">XXXXX</saldo>
</return>
</ns2:ZCuadre_ConSolResponse>
What I'm trying to do is remove the XSI and XMLNS tags from the answer fields so that something like this follows:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns2:ZCuadre_ConSolResponse xmlns:ns2="http://sap.ws.xxxxx.com/">
<return>
<coemp>XXXXX</coemp>
<fecon>XXXXX</fecon>
<ejerc>XXXXX</ejerc>
<perio>XXXXX</perio>
<nucta>XXXXX</nucta>
<ledger>XXXXX</ledger>
<saldo>XXXXX</saldo>
</return>
</ns2:ZCuadre_ConSolResponse>
Will it be possible? and if you can ... how do I do it? Thanks for your help.