why is getLastRequest not returning anything?

Ikram011

New Member
I am trying to get the XML request:\[code\]$cgProxy = new SoapClient($WSDL_URL,array('trace' => 1));try { $result = $cgProxy->OrderCreate($cgOrder);} catch (SoapFault $exc) { var_dump($exc); echo "Request:\n" . $cgProxy->__getLastRequest(), "\n"; echo "Response:\n" . $cgProxy->__getLastResponse() . "\n";}\[/code\]With this I get the soap server error from the $exc dump. But the getLastRequest does not seem to be returning anything. Any thoughts?I have also tried with htmlspecialchars() and htmlentities() without success . . .
 
Top