2012-04-07 122 views
-1

我發送肥皂請求在PHP中,並希望看到完整的XML肥皂請求。如何輸出xml或在Firefox中查看xml? 感謝閱讀肥皂標題

+0

表現出一點代碼... – 2012-04-07 23:11:48

回答

0

http://www.php.net/manual/en/soapclient.getlastrequest.php

<?php 
$client = SoapClient("some.wsdl", array('trace' => 1)); 
$result = $client->SomeFunction(); 
echo "REQUEST:\n" . $client->__getLastRequest() . "\n"; 

還有__getLastRequestHeaders()__getLastResponse(),並__getLastResponseHeaders()