這種xml怎么解析,java接口返回的數(shù)據(jù)。解析時(shí)候報(bào)錯(cuò):simplexml_load_string(): namespace error : Namespace prefix client on RETCODE is not defined原因是:env:Envelope這種節(jié)點(diǎn),找不到env這個(gè)命名空間
1 回答

回首憶惘然
TA貢獻(xiàn)1847條經(jīng)驗(yàn) 獲得超11個(gè)贊
參考 Parsing SOAP responses with PHP's SimpleXML:
SOAP responses contain namespaces on some if not all of the nodes and SimpleXML doesn’t really care for that when using the traditional method of interaction. To accomplish this, you will need to use the SimpleXMLElement::children() method to specify the namespace
- 1 回答
- 0 關(guān)注
- 682 瀏覽
添加回答
舉報(bào)
0/150
提交
取消