Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

Organizational Research By

Surprising Reserch Topic

how to parse soap xml

how to parse soap xml  using -'php,xml,soap'


<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="" xmlns:xsd="" xmlns:soap="">
    <PaymentNotification xmlns="">
        <bankInformation>Sean Wood</bankInformation>

How to get 'payment' element?

I try to parse (PHP)

$xml = simplexml_load_string($soap_response);
$xml->registerXPathNamespace('soap', '');
foreach ($xml->xpath('//payment') as $item)

Result is empty :(
Any ideas how to parse it correct?

asked Sep 24, 2015 by santosh soni
0 votes

Related Hot Questions

Government Jobs Opening