axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Syed Musavvir <syed.musav...@gmail.com>
Subject Axis2 edit response XML
Date Tue, 08 Feb 2011 18:57:54 GMT
Dear All,

I am facing a problem with Axis2 response regarding unwanted
empty tags/attributes in the response xml,

please go through the following explanations and example….

I am using Axis2 1.4 for developing webservices.I need to remove the empty
tags that are coming in the response

Any suggestion / response is highly appreciated,
Thanks in advance...


My response look like this

         <ns:return>

            <ax21:altPart/>

            <ax21:bo>

               <ax21:boFac>01</ax21:boFac>

               <ax21:boQty>1</ax21:boQty>

            </ax21:bo>

            <ax21:boInd>Y</ax21:boInd>

            <ax21:coreDesc>Regeneracja</ax21:coreDesc>

            <ax21:coreUnitSell>0.0</ax21:coreUnitSell>

            <ax21:currInd>PLN</ax21:currInd>

            <ax21:custPresCurrCd>PLN</ax21:custPresCurrCd>

            <ax21:desc>EL.KOLA NPEDOWEGO</ax21:desc>

            <ax21:errorCode/>

            <ax21:errorDesc/>

            <ax21:extdCoreSell>0.0</ax21:extdCoreSell>

            <ax21:extdDisc>0.0</ax21:extdDisc>

            <ax21:extdNet>200.02</ax21:extdNet>

            <ax21:extdSell>200.02</ax21:extdSell>

            <ax21:hoseAsmInd>N</ax21:hoseAsmInd>

            <ax21:nonRtnInd>N</ax21:nonRtnInd>

            <ax21:outputSOS>CA</ax21:outputSOS>

            <ax21:partNoteArray>

               <ax21:partNote>EL.KOLA NPEDOWEGO</ax21:partNote>

            </ax21:partNoteArray>

            <ax21:qtyOnHand>0</ax21:qtyOnHand>

            <ax21:repl/>

            <ax21:sosName>MIEJSKIE PRZEDSIEBIORSTWO</ax21:sosName>

            <ax21:unitDisc>0.0</ax21:unitDisc>

            <ax21:unitSell>200.02</ax21:unitSell>

            <ax21:unitWeight>8.64</ax21:unitWeight>

            <ax21:xref/>

         </ns:return>



It should be edited as (empty tags should be removed)

         <ns:return>

            <ax21:bo>

               <ax21:boFac>01</ax21:boFac>

               <ax21:boQty>1</ax21:boQty>

            </ax21:bo>

            <ax21:boInd>Y</ax21:boInd>

            <ax21:coreDesc>Regeneracja</ax21:coreDesc>

            <ax21:coreUnitSell>0.0</ax21:coreUnitSell>

            <ax21:currInd>PLN</ax21:currInd>

            <ax21:custPresCurrCd>PLN</ax21:custPresCurrCd>

            <ax21:desc>EL.KOLA NPEDOWEGO</ax21:desc>

            <ax21:extdCoreSell>0.0</ax21:extdCoreSell>

            <ax21:extdDisc>0.0</ax21:extdDisc>

            <ax21:extdNet>200.02</ax21:extdNet>

            <ax21:extdSell>200.02</ax21:extdSell>

            <ax21:hoseAsmInd>N</ax21:hoseAsmInd>

            <ax21:nonRtnInd>N</ax21:nonRtnInd>

            <ax21:outputSOS>CA</ax21:outputSOS>

            <ax21:partNoteArray>

               <ax21:partNote>EL.KOLA NPEDOWEGO</ax21:partNote>

            </ax21:partNoteArray>

            <ax21:qtyOnHand>0</ax21:qtyOnHand>

            <ax21:sosName>MIEJSKIE PRZEDSIEBIORSTWO</ax21:sosName>

            <ax21:unitDisc>0.0</ax21:unitDisc>

            <ax21:unitSell>200.02</ax21:unitSell>

            <ax21:unitWeight>8.64</ax21:unitWeight>

         </ns:return>



Thanks and Regards,

Abdul Musavvir

Mime
View raw message