Hi All,
I have a requiredment where the source payload is coming encapsulated in soap envelop(client is not using pi soap envelope).
The entire content(xml ) is coming in one field within the soap envelop. I have to extract the content from one single field to the target structure(similar to the source xml coming in one field) .
I plan to implement this using xslt mapping . But am not getting exactly what is needed. Please help with xslt mapping .
Source payload:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ns1:envResponse soapenv:encodingStyle="http://www.w3.org/2003/05/soap-encoding" xmlns:ns1="http://www.zzzz.com.br/xyz/abc.jws">
<ns2:result xmlns:ns2="envReturnhttp://www.w3.org/2003/05/soap-rpc">envReturn</ns2:result>
<envReturn xsi:type="xsd:string">
<?xml version="1.0" encoding="UTF-8"?>
<ns1:Retorno xmlns:ns1="http://localhost:8080/xyz/abc" xmlns:tipos="http://localhost:8080/xyz/tp" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://localhost:8080/xyz/abchttp://localhost:8080/xyz/xsd/Retorno.xsd ">
<Cabecalho>
<CodCidade>6291</CodCidade>
<Sucesso>true</Sucesso>
<NumeroLote>3313325</NumeroLote>
<CPFCNPJRemetente>64139108000142</CPFCNPJRemetente>
<DataEnvioLote>2013-04-18T09:12:35.0Z</DataEnvioLote>
<QtdNotasProcessadas>0</QtdNotasProcessadas>
<TempoProcessamento>0</TempoProcessamento>
<ValorTotalServicos>0</ValorTotalServicos>
<ValorTotalDeducoes>0</ValorTotalDeducoes>
<Versao>1</Versao>
<Assincrono>S</Assincrono>
</Cabecalho>
<Alertas />
<Erros />
<ChavesNFSeRPS />
</ns1:Retorno>
</envReturn></ns1:envResponse></soapenv:Body></soapenv:Envelope>
I have to extract the content of envReturn and map to target structure . Target structure is of same format as Reterno(in above example).
Experts please help. My xslt mapping is not working for me.
Regards,
Anumeha.