I have a XML posted to a WebService and I am having problems because it expects other xml format. I need transform the next xml adding xmlns:ans="http://www.ans.gov.br/padroes/tiss/schemas and removing the namespace from solicitacaoProcedimentoWS node.
Some help will be appreciated. Thanks in advance, Luiz
<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<solicitacaoProcedimentoWS xmlns="http://www.ans.gov.br/padroes/tiss/schemas">
<cabecalho>
<identificacaoTransacao>
<tipoTransacao>SOLICITACAO_PROCEDIMENTOS</tipoTransacao>
<sequencialTransacao>k1</sequencialTransacao>
</identificacaoTransacao>
</cabecalho>
<hash>393d3f1e310f3385ad0398dd9b65dc4a</hash>
</solicitacaoProcedimentoWS>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
I´d like to transform to:
<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ans="http://www.ans.gov.br/padroes/tiss/schemas"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<ans:solicitacaoProcedimentoWS>
<ans:cabecalho>
<ans:identificacaoTransacao>
<ans:tipoTransacao>SOLICITACAO_PROCEDIMENTOS</ans:tipoTransacao>
<ans:sequencialTransacao>k1</ans:sequencialTransacao>
</ans:identificacaoTransacao>
</ans:cabecalho>
<ans:hash>393d3f1e310f3385ad0398dd9b65dc4a</ans:hash>
</ans:solicitacaoProcedimentoWS>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>