Hi,

 

I'm new at CXF and I'm doing some tests, in which I add the following XML in
SOAP message:

 

<cancNFe xmlns="http://www.portalfiscal.inf.br/nfe"; versao="2.00"><infCanc
Id="ID35120509296295000240550010000067501361243897"><tpAmb>2</tpAmb><xServ>C
ANCELAR</xServ><chNFe>35120509296295000240550010000067501361243897</chNFe><n
Prot>135120291215871</nProt><xJust>AZUL_PROD_ORACLE -
CANCELAMENTO</xJust></infCanc></cancNFe>

 

But before sending, the CXF changes the XML:

 

<cancNFe:cancNFe xmlns:cancNFe="http://www.portalfiscal.inf.br/nfe";
xmlns="http://www.portalfiscal.inf.br/nfe"; versao="2.00"><infCanc
Id="ID35120509296295000240550010000067501361243897"><tpAmb>2</tpAmb><xServ>C
ANCELAR</xServ><chNFe>35120509296295000240550010000067501361243897</chNFe><n
Prot>135120291215871</nProt><xJust>AZUL_PROD_ORACLE -
CANCELAMENTO</xJust></infCanc></cancNFe:cancNFe>

 

Note that the namespace is added
"xmlns:cancNFe=http://www.portalfiscal.inf.br/nfe"; and the prefix cancNFe:

 

Why CXF changes the original XML?

 

I need to remove this namespace and prefix, how can I do this?

 

Regards,

Fernando Cesar

Reply via email to