I think something else (not the CXF itself) is interfering with the
processing and that is changing the xml payload.

I suspect someone added some code to intentionally change the namespace
which disassociates all the child elements from the root element's
namespace, resulting in two logically different messages (not just
physically different). This kind of thing can only happen if someone
intentionally changes the namespaces.

Could youm check on this and describe your set up more precisely?
regards, aki


2013/4/19 Fernando Silva <[email protected]>

> 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