public function get_product_list($data) { $getProductList = new GetProductList(); $getProductList->pageIndex = $data['page_index']; $getProductList->pageSize = $data['page_size']; $getProductList->key = $this->key; echo '<pre>'; echo '<meta content="text/html; charset=utf-8" http-equiv="Content-Type">'; try { $client = new SoapClient($this->product_gateway_url); $response = $client->GetProductList($getProductList); var_dump($response); // $result = $response->GetStockResult; // if ($result->Success) // { // return array( // 'title' => $result->Result->Title, // 'storage_no' => $result->Result->StorageNo, // 'amount' => $result->Result->Amount, // 'amount_out' => $result->Result->AmountOut, // 'weight' => $result->Result->Weight, // 'packing' => $result->Result->Packing, // ); // } // else // { // return array('status' => FALSE, 'message' => $result->Message); // } } catch (SOAPFault $exception) { return FALSE; } }