cxf-spring-boot-starter icon indicating copy to clipboard operation
cxf-spring-boot-starter copied to clipboard

Change or remove default prefix

Open andersonkxiass opened this issue 5 years ago • 0 comments

Is there an approach to change or remove the default prefix generated in the request object? I need to remove this prefix from the xml of my application, and I haven't found an effective way to do this.

Remove <my:cfeCabecMsg> here and <my:MyService> here

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:my="http://myservice/ws/MyService">
   <soap:Header>
      <my:cfeCabecMsg>
         <cUF>34</cUF>
         <versaoDados>1.2</versaoDados>
      </my:cfeCabecMsg>
   </soap:Header>
   <soap:Body>
      <my:MyService>
         <DadosMsg>
            <endServ versao="1">
               <tpAmb>1</tpAmb>
               <cUF>23</cUF>
               <nSeg>seg2</nSeg>
               <dhEnvio>20210101</dhEnvio>
               <nserieSAT>1212312333</nserieSAT>
            </endServ>
         </DadosMsg>
      </my:MyService>
   </soap:Body>
</soap:Envelope>

andersonkxiass avatar Feb 07 '21 16:02 andersonkxiass