[ https://issues.apache.org/jira/browse/WSCOMMONS-519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12801853#action_12801853 ]
Italivio Correa commented on WSCOMMONS-519: ------------------------------------------- Andreas, Here's an example of a message sent by customers. Note the namespaces, they can not modified. In version 1.2.8 of the AXIOM API, he repeats the namespaces in child tags. Making the change suggested he begins to read correctly the namespaces, as sent by the client. Note, the schema validation will be performed later. <?xml version="1.0" encoding="UTF-8" ?> <soap12:envelope xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap12:Header> <nfeCabecMsg xmlns="http://www.teste.inf.br/nfe/wsdl/NfeRecepcao2"> <versaoDados>2.00</versaoDados> <cUF>50</cUF> </nfeCabecMsg> </soap12:Header> <soap12:Body> <nfeRecepcaoLote2 xmlns=" http://www.teste.inf.br/nfe/wsdl/NfeRecepcao2"> <nfeDadosMsg> <soap12iNFe xmlns="http://www.teste.inf.br/nfe" versao="1.10"> <idLote>55000000000053</idLote> <NFe xmlns="http://www.teste.inf.br/nfe"> <infNFe versao="1.10" Id="NFe50100136810786000150550000000000534732561370"> <ide> <cUF>50</cUF> <cNF>473256137</cNF> <natOp>VENDA</natOp> <indPag>1</indPag> <mod>55</mod> <serie>0</serie> <nNF>53</nNF> <procEmi>0</procEmi> <verProc>System 1.0</verProc> </ide> <emit> <CNPJ>00000000000000</CNPJ> <xNome>KITS SHOPP LTDA</xNome> <xFant>KITS SHOPP LTDA</xFant> <enderEmit> <xLgr>RUA SEI LA, 3333</xLgr> <nro>0</nro> <xBairro>JARDIM PAULISTA</xBairro> <cMun>5002704</cMun> <xMun>CAMPO GRANDE</xMun> <UF>MS</UF> </enderEmit> <IE>000000000</IE> </emit> <dest> <CPF>00000000000</CPF> <xNome>TESTE TESTETESTETETETETE</xNome> <enderDest> <xLgr>RUA PORTUGAL, 333</xLgr> <nro>1373</nro> <xBairro>N.S. DE FATIMA</xBairro> <cMun>5002704</cMun> <xMun>CAMPO GRANDE</xMun> <UF>MS</UF> </enderDest> <IE>ISENTO</IE> </dest> </infNFe> </NFe> <NFe xmlns="http://www.teste.inf.br/nfe"> <infNFe versao="1.10" Id="NFe50100136810786000150550000000000534732561371"> <ide> <cUF>50</cUF> <cNF>473256138</cNF> <natOp>VENDA</natOp> <indPag>1</indPag> <mod>55</mod> <serie>0</serie> <nNF>53</nNF> <procEmi>0</procEmi> <verProc>System 1.0</verProc> </ide> <emit> <CNPJ>00000000000000</CNPJ> <xNome>KITS SHOPP LTDA</xNome> <xFant>KITS SHOPP LTDA</xFant> <enderEmit> <xLgr>RUA SEI LA, 3333</xLgr> <nro>0</nro> <xBairro>JARDIM PAULISTA</xBairro> <cMun>5002704</cMun> <xMun>CAMPO GRANDE</xMun> <UF>MS</UF> </enderEmit> <IE>000000000</IE> </emit> <dest> <CPF>00000000000</CPF> <xNome>TESTE TESTETESTETETETETE</xNome> <enderDest> <xLgr>RUA PORTUGAL, 333</xLgr> <nro>1373</nro> <xBairro>N.S. DE FATIMA</xBairro> <cMun>5002704</cMun> <xMun>CAMPO GRANDE</xMun> <UF>MS</UF> </enderDest> <IE>ISENTO</IE> </dest> </infNFe> </NFe> </soap12iNFe> </nfeDadosMsg> </nfeRecepcaoLote2> </soap12:Body> </soap12:envelope> 2010/1/18 Italivio Correa (JIRA) <j...@apache.org> > bug in axiom-api class StAXOMBuilder n the method processNamespaceData, > generating wrong namespace. > --------------------------------------------------------------------------------------------------- > > Key: WSCOMMONS-519 > URL: https://issues.apache.org/jira/browse/WSCOMMONS-519 > Project: WS-Commons > Issue Type: Bug > Components: AXIOM > Affects Versions: Axiom 1.2.8 > Environment: Linux Ubuntu > Reporter: Italivio Correa > Priority: Critical > > In class StAXOMBuilder found an error in the method processNamespaceData. The > command if (namespaceURI! = Null & & namespaceURI.length ()> 0) is wrong, > should be so if (namespaceURIFromParser! = Null & & > namespaceURIFromParser.length ()> 0). This error is generating wrong > namespace for the tags. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.