title: how to get the product details in amazon mws?
body: <p>Hi here is my code please check it and let me know what im missing.
  im using amazon orders API for this.</p>
  
  <pre><code>&lt;?php
  
  require_once('.config.inc.php');
  
  //$serviceUrl = "https://mws.amazonservices.com/Orders/2013-09-01";
  // Europe
  $serviceUrl = "https://mws-eu.amazonservices.com/Orders/2013-09-01";
  // Japan
  //$serviceUrl = "https://mws.amazonservices.jp/Orders/2013-09-01";
  // China
  //$serviceUrl = "https://mws.amazonservices.com.cn/Orders/2013-09-01";
  
  
   $config = array (
     'ServiceURL' =&gt; $serviceUrl,
     'ProxyHost' =&gt; null,
     'ProxyPort' =&gt; -1,
     'ProxyUsername' =&gt; null,
     'ProxyPassword' =&gt; null,
     'MaxErrorRetry' =&gt; 3,
   );
  
   $service = new MarketplaceWebServiceOrders_Client(
          AWS_ACCESS_KEY_ID,
          AWS_SECRET_ACCESS_KEY,
          APPLICATION_NAME,
          APPLICATION_VERSION,
          $config);
  
  
   $request = new MarketplaceWebServiceOrders_Model_ListOrdersRequest();
   $request-&gt;setSellerId(MERCHANT_ID);
   // object or array of parameters
   echo"&lt;pre&gt;";
   print_r($service);
   invokeListOrders($service, $request);
  
    function invokeListOrders(MarketplaceWebServiceOrders_Interface $service, $request)
    {
        try {
          $response = $service-&gt;ListOrders($request);
  
          echo ("Service Response\n");
          echo ("=============================================================================\n");
  
          $dom = new DOMDocument();
          $dom-&gt;loadXML($response-&gt;toXML());
          $dom-&gt;preserveWhiteSpace = false;
          $dom-&gt;formatOutput = true;
          echo $dom-&gt;saveXML();
          echo("ResponseHeaderMetadata: " . $response-&gt;getResponseHeaderMetadata() . "\n");
  
       } catch (MarketplaceWebServiceOrders_Exception $ex) {
          echo("Caught Exception: " . $ex-&gt;getMessage() . "\n");
          echo("Response Status Code: " . $ex-&gt;getStatusCode() . "\n");
          echo("Error Code: " . $ex-&gt;getErrorCode() . "\n");
          echo("Error Type: " . $ex-&gt;getErrorType() . "\n");
          echo("Request ID: " . $ex-&gt;getRequestId() . "\n");
          echo("XML: " . $ex-&gt;getXML() . "\n");
          echo("ResponseHeaderMetadata: " . $ex-&gt;getResponseHeaderMetadata() . "\n");
       }
   }
  </code></pre>
  
  <p>This is the XMl im using for getting the details i request somebody to reply me as soon as possible.</p>