Xcom
PHP Manual

Xcom::getDebugOutput

(PECL xcommerce >= 1.0.0)

Xcom::getDebugOutputGet the debug output

Opis

public string Xcom::getDebugOutput ( void )

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().

Parametry

Ta funkcja nie posiada parametrów.

Zwracane wartości

Returns a string containing request/response debug information.

Przykłady

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();

?>


Xcom
PHP Manual