Return to bug31755.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / soap / tests / bugs |
1.1 misho 1: --TEST-- 2: Bug #31422 (No Error-Logging on SoapServer-Side) 3: --SKIPIF-- 4: <?php require_once('skipif.inc'); ?> 5: --FILE-- 6: <?php 7: $client=new SOAPClient(null, array('location' => 'http://localhost', 8: 'uri' => 'myNS', 'exceptions' => false, 'trace' => true)); 9: 10: $header = new SOAPHeader(null, 'foo', 'bar'); 11: 12: $response= $client->__call('function', array(), null, $header); 13: 14: print $client->__getLastRequest(); 15: ?> 16: --EXPECTF-- 17: Warning: SoapHeader::SoapHeader(): Invalid namespace in %s on line %d 18: <?xml version="1.0" encoding="UTF-8"?> 19: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="myNS" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Header/><SOAP-ENV:Body><ns1:function/></SOAP-ENV:Body></SOAP-ENV:Envelope>