Exemplo n.º 1
0
 * responses without calling FBAInboundServiceMWS service.
 *
 * Responses are loaded from local XML files. You can tweak XML files to
 * experiment with various outputs during development
 *
 * XML files available under FBAInboundServiceMWS/Mock tree
 *
 ***********************************************************************/
// $service = new FBAInboundServiceMWS_Mock();
/************************************************************************
 * Setup request parameters and uncomment invoke to try out
 * sample for List Inbound Shipments Action
 ***********************************************************************/
// @TODO: set request. Action can be passed as FBAInboundServiceMWS_Model_ListInboundShipments
$request = new FBAInboundServiceMWS_Model_ListInboundShipmentsRequest();
$request->setSellerId(MERCHANT_ID);
// object or array of parameters
invokeListInboundShipments($service, $request);
/**
 * Get List Inbound Shipments Action Sample
 * Gets competitive pricing and related information for a product identified by
 * the MarketplaceId and ASIN.
 *
 * @param FBAInboundServiceMWS_Interface $service instance of FBAInboundServiceMWS_Interface
 * @param mixed $request FBAInboundServiceMWS_Model_ListInboundShipments or array of parameters
 */
function invokeListInboundShipments(FBAInboundServiceMWS_Interface $service, $request)
{
    try {
        $response = $service->ListInboundShipments($request);
        echo "Service Response\n";