我有一個XML發佈到WebService,我有問題,因爲它期望其他XML格式。 我需要改變下一個XML添加的xmlns:。ANS =「http://www.ans.gov.br/padroes/tiss/schemas和刪除solicitacaoProcedimentoWS節點的命名空間XSLT變換移動命名空間
一些幫助將不勝感激 謝謝事先, 路易斯
<?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>
我倒是想轉換爲:
<?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>
輸入和輸出之間有什麼區別 - 除了化妝品? – 2015-02-11 12:08:46
嗨,沒有區別,但如果我不轉換XML格式,web服務不接受。我不能改變web服務,因爲不是我的。 – 2015-02-11 13:28:45