Fórum XML Documento para consumir XML retorno de WebService #553241
05/05/2016
0
Amigos,
Preciso consumir as informações resultantes neste XML (obtido após consumir um WS), porém, com o XML Document não consigo chegar na TAG (response) para obter as informações. Alguém poderia me dar uma luz?
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:getCardInfoByPanVasExternalResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://webservices.client.smartware.nch.it">
<getCardInfoByPanVasExternalReturn xsi:type="xsd:string"><![CDATA[<response>
<idSessione>935101368158209280</idSessione>
<esitoOperazione>0000</esitoOperazione>
<content>
<nome>B</nome>
<cognome>A</cognome>
<cards>
<card>
<numeroCarta>000000000000055</numeroCarta>
<statoCarta>B</statoCarta>
</card>
</cards>
</content>
</response>]]></getCardInfoByPanVasExternalReturn>
</ns1:getCardInfoByPanVasExternalResponse>
</soapenv:Body>
</soapenv:Envelope>
Preciso consumir as informações resultantes neste XML (obtido após consumir um WS), porém, com o XML Document não consigo chegar na TAG (response) para obter as informações. Alguém poderia me dar uma luz?
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:getCardInfoByPanVasExternalResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://webservices.client.smartware.nch.it">
<getCardInfoByPanVasExternalReturn xsi:type="xsd:string"><![CDATA[<response>
<idSessione>935101368158209280</idSessione>
<esitoOperazione>0000</esitoOperazione>
<content>
<nome>B</nome>
<cognome>A</cognome>
<cards>
<card>
<numeroCarta>000000000000055</numeroCarta>
<statoCarta>B</statoCarta>
</card>
</cards>
</content>
</response>]]></getCardInfoByPanVasExternalReturn>
</ns1:getCardInfoByPanVasExternalResponse>
</soapenv:Body>
</soapenv:Envelope>
Work Ltda
Curtir tópico
+ 0
Responder
Clique aqui para fazer login e interagir na Comunidade :)