(PECL xcommerce >= 1.0.0)
Xcom::getDebugOutput — Get the debug output
Get the full request/response headers and body from the previous
message (if Xcom::__debug
was set to a
non-FALSE
value before the
Xcom::send()). This call does not work for
messages which are sent using Xcom::sendAsync().
Ta funkcja nie posiada parametrów.
Returns a string containing request/response debug information.
Przykład #1 Xcom::getDebugOutput() example
<?php
$schema = file_get_contents('http://api.x.com/ocl/com.x.example.v1/OrderFulfillment/OrderShipped/1.2.0/');
$data = new stdClass();
$data->orderID = "123495585343";
$xcom = new Xcom(XCOM_FABRIC_SANDBOX, "fabric_token", "capability_token");
$xcom->send("/com.x.example.v1/OrderFulfillment/OrderShipped", $data, $schema);
echo "Debug output: " . $xcom->getDebugOutput();
?>