Hi,
I'm doing some tests, in which I add the following XML (Signed XML) in SOAP message: <?xml version="1.0" encoding="UTF-8"?> <inutNFe xmlns="http://www.portalfiscal.inf.br/nfe" versao="2.00"> <infInut Id="ID35130929629500024055001042708314042708414"> <tpAmb>2</tpAmb> <xServ>INUTILIZAR</xServ> <cUF>35</cUF> <ano>13</ano> <CNPJ>09296295000240</CNPJ> <mod>55</mod> <serie>1</serie> <nNFIni>42708314</nNFIni> <nNFFin>42708414</nNFFin> <xJust>Numero nao utilizado pelo sistema.</xJust> </infInut> <Signature xmlns="http://www.w3.org/2000/09/xmldsig#"> . . . </Signature> </inutNFe> But after put the XML in the Soap Envelope Body, CXF changes the XML adding namespaces and prefixes: <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> <soap:Header> <ns2:nfeCabecMsg xmlns:ns2="http://www.portalfiscal.inf.br/nfe/wsdl/NfeInutilizacao2" xmlns="http://www.portalfiscal.inf.br/nfe"> <ns2:cUF>35</ns2:cUF> <ns2:versaoDados>2.00</ns2:versaoDados> </ns2:nfeCabecMsg> </soap:Header> <soap:Body> <ns2:nfeDadosMsg xmlns=" <http://www.portalfiscal.inf.br/nfe> http://www.portalfiscal.inf.br/nfe" xmlns:ns2=" <http://www.portalfiscal.inf.br/nfe/wsdl/NfeInutilizacao2> http://www.portalfiscal.inf.br/nfe/wsdl/NfeInutilizacao2"> <inutNFe versao="2.00"> <infInut Id="ID35130929629500024055001042708314042708414"> <tpAmb>2</tpAmb> <xServ>INUTILIZAR</xServ> <cUF>35</cUF> <ano>13</ano> <CNPJ>09296295000240</CNPJ> <mod>55</mod> <serie>1</serie> <nNFIni>42708314</nNFIni> <nNFFin>42708414</nNFFin> <xJust>Numero nao utilizado pelo sistema.</xJust> </infInut> <Signature:Signature xmlns:Signature="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.w3.org/2000/09/xmldsig#"> . . . </Signature:Signature> </inutNFe> </ns2:nfeDadosMsg> </soap:Body> </soap:Envelope> Why CXF changes the original XML? I need to remove this namespace and prefix, how can I do this? Regards, Fernando Cesar
