如何从SOAP响应js获取数据

时间:2018-03-01 20:15:08

标签: javascript json reactjs react-native soap

我有一个API可以为我返回这些数据。

我需要访问其中的数据。我尝试了一些{ "SOAP-ENV:Envelope": { "$": { "SOAP-ENV:encodingStyle": "http://schemas.xmlsoap.org/soap/encoding/", "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", "xmlns:SOAP-ENC": "http://schemas.xmlsoap.org/soap/encoding/" }, "SOAP-ENV:Body": [ { "Entidade.dadosEntidadeResponse": [ { "return": [ { "$": { "xsi:nil": "true", "xsi:type": "xsd:int" } } ], "msgResult": [ { "_": "Ok", "$": { "xsi:type": "xsd:string" } } ], "rsEntidade": [ { "_": "ASSOCIAÃÃO PRO MELHORAMENTOS DA VILA PREL", "$": { "xsi:type": "xsd:string" } } ], "enderecoEntidade": [ { "_": "RUA THEREZA MAIA PINTO", "$": { "xsi:type": "xsd:string" } } ], "telEntidade": [ { "_": "1158126849", "$": { "xsi:type": "xsd:string" } } ], "emailEntidade": [ { "_": "xxx@uol.com.br", "$": { "xsi:type": "xsd:string" } } ], "telPresidente": [ { "_": "5222682-2716", "$": { "xsi:type": "xsd:string" } } ], "emailPresidente": [ { "$": { "xsi:type": "xsd:string" } } ] } ] } ] } 但由于两点而出错。

无法进行更多调试,因为我使用的是本机反应。

http://myjson.com/14veid

emailEntidade

我需要访问此回复的telEntidade,{{1}}个礼节。 尝试过许多人这样做,但没有成功。 使用javascript,反应原生

0 个答案:

没有答案