Forum Discussion
Khairul
13 years agoNew Contributor
Hi nmrao,
The client gave us the data through soapiu and we need to extract them to get the data within page.
Here the sample code we use now but i dont have solution how to get the multiple values from soapiu xml (i want to get the values within BillStatements (foreach - loop))
The client gave us the data through soapiu and we need to extract them to get the data within page.
Here the sample code we use now but i dont have solution how to get the multiple values from soapiu xml (i want to get the values within BillStatements (foreach - loop))
<?php
$getBillStatementHistoryList = call_curl('getBillStatementHistoryList','<java:RequestID>'.$_SESSION['MM_UserTicket'].'</java:RequestID><java1:Msisdn>'.$_SESSION['MM_Msisdn'].'</java1:Msisdn><java1:FromDate>2012-01-01</java1:FromDate><java1:ToDate>'.date("Y-m-d").'</java1:ToDate>');
$xml_getBillStatementHistoryList = simplexml_load_string($getBillStatementHistoryList);
$xml_getBillStatementHistoryList->registerXPathNamespace('soapenv', 'http://schemas.xmlsoap.org/soap/envelope/');
$xml_getBillStatementHistoryList->registerXPathNamespace('java', 'java:my.com.ericsson.umobile.billing');
(string)$xml_getBillStatementHistoryList->children('soapenv', true)->Body->children('m', true)->getCustomerDetailsResponse->return->children('java', true)->BillStatements; ?>