Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://localhost:8000/soap/index.php?wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
- <SOAP-ENV:Body>
- <ns1:testMethod>
- <return xsi:type="xsd:boolean">true</return>
- </ns1:testMethod>
- </SOAP-ENV:Body>
- </SOAP-ENV:Envelope>
- $xml = simplexml_load_string($res, NULL, NULL, "http://schemas.xmlsoap.org/soap/envelope/");
- $ns = $xml->getNamespaces(true);
- $soap = $xml->children($ns['SOAP-ENV']);
- $res = $soap->Body->children($ns['ns1']);
- foreach ($res->LookupResponse as $item) {
- echo $item->result.PHP_EOL;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement