PHP 解析soap数据
工作需要做机票对接,但对方数据返回的是soap格式,有没有什么好的办法解析这个数据,比如转成惊悚或者array.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns2:getOrderStatusResponse xmlns:ns2="http://getorderstatus.b2b.service.version1_0.webservice.model.ltips.com/">
<return>
<returnCode>S</returnCode>
<returnMessage>待支付</returnMessage>
<orderNo>112019022288498400</orderNo>
<orderStatus>1</orderStatus>
<ticketNos></ticketNos>
</return>
</ns2:getOrderStatusResponse>
</soap:Body>
</soap:Envelope>