[ Поиск ] - [ Пользователи ] - [ Календарь ]
Полная Версия: denwer & web server
lulo
я загружаю файлы на амазон.у меня вот така я ошибка(это на denwer)
Error:
Caught Exception: Internal Error
Response Status Code: 0
Error Code:
Error Type:
Request ID:
XML:


на хостинге этот же код хорошо работает

нашол ответ по этому поводу в инете

Цитата
After a long time and discussion in the forum of Amazon Seller Community (MWS Section), I was finally able to get response form amazon using the PHP library that they had provided.

The important point to be notes is that the code that you have is perfectly fine with some changes which needs to be done to get it working, but this has to be uploaded in some server since I was trying to run using my local, I was not able to fetch the output from amazon.com which I used to successfully get from eBay.com.

So, please make a note that incase if you are using the amazon PHP Library, and you feel that it is not functioning in local, please upload to your test server and test running there. I guarantee you that it should work.


вот вопрос. чем может denwer с которого я отправляю запрос отличатса от хостинга на котором все работает?
dron4ik
Цитата (lulo @ 12.10.2012 - 08:23)
вот вопрос. чем может denwer с которого я отправляю запрос отличатса от хостинга на котором все работает?

Возможно вы используете функции которые запрещены к использованию там...

Проверьте Response Status Code: 0

_____________
Ex3m.com.ua — Активный образ жизни
lulo

include_once ('.config1.inc.php');
date_default_timezone_set('Europe/Berlin');
$serviceUrl = "https://mws.amazonservices.de";

$config = array(
'ServiceURL' => $serviceUrl,
'ProxyHost' => null,
'ProxyPort' => -1,
'MaxErrorRetry' => 3
);

$service = new MarketplaceWebService_Client(
AWS_ACCESS_KEY_ID,
AWS_SECRET_ACCESS_KEY,
$config,
APPLICATION_NAME,
APPLICATION_VERSION);
$marketplaceIdArray = array('Id' => "A1PA6795UKMFR9");

/* * ******* Begin Comment Block ******** */
//var_dump('amazon/amazonde'.date("Ymd").'.csv');

$date = "20121011"; //date("Ymd");
$file_name = '../../upload_data/files/amazonde' . $date . '.csv';
$feedHandle = @fopen($file_name, 'rw+');
$request = new MarketplaceWebService_Model_SubmitFeedRequest();
$request->setMerchant(MERCHANT_ID);
$request->setMarketplaceIdList($marketplaceIdArray);
$request->setFeedType('_POST_FLAT_FILE_INVLOADER_DATA_');
$request->setContentMd5(base64_encode(md5(stream_get_contents($feedHandle), true)));
$request->setPurgeAndReplace(false);
$request->setFeedContent($feedHandle);
/* * ******* End Comment Block ******** */

invokeSubmitFeed($service, $request);
@fclose($feedHandle);

function invokeSubmitFeed(MarketplaceWebService_Interface $service, $request) {


тут ниче необычного нет. а все остальное они дали как библиотека.
Быстрый ответ:

 Графические смайлики |  Показывать подпись
Здесь расположена полная версия этой страницы.
Invision Power Board © 2001-2024 Invision Power Services, Inc.