我正在尝试将SOAP响应转换为XML。
SOAP有一个信封和一个主体。
当我尝试转换时
SOAP有一个信封和一个主体。
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
当我尝试转换时
$responseXML = simplexml_load_string($string);
我理解
object(SimpleXMLElement)#20 (0) { }
如果我将$string
编辑为soap:Envelope
和soap:Body
,就可以得到XML。
:
有什么问题吗?无法获取XML。
希望这很清楚。有人可以解释一下吗?