web services - magento netsuite integration using SuitTalk crushes my page -
i trying retrieve data netsuite magento website. trying use suitetalk. documentation in these link. http://www.netsuite.com/portal/developers/resources/suitetalk-sample-applications.shtml. fetches desired result in lunix terminal. when tried load page, page crushed. first time tried include in block. , second used observer. both ways not successful. have idea?
the error log follows
a:5:{i:0;s:33:"webservice host must specified";i:1;s:3914:"#0 /dir/magento_1.9/app/code/local/etech/customersupport/block/phptoolkit/netsuiteservice.php(132596): nsphpclient->__construct(null, array) #1 /dir/magento_1.9/app/code/local/etech/customersupport/block/myclass.php(12): netsuiteservice->__construct() #2 /mydir//magento_1.9/app/code/local/etech/customersupport/block/myblock.php(14): myclass->get_customer() #3 /mydir//magento_1.9/app/design/frontend/shopper/default/template/etech/index.phtml(9): etech_customersupport_block_myblock->getcustomer() #4 /mydir//magento_1.9/app/code/core/mage/core/block/template.php(241): include('/var/www/vhosts...') #5 /mydir//magento_1.9/app/code/core/mage/core/block/template.php(272): mage_core_block_template->fetchview('frontend/shoppe...') #6 /mydir//magento_1.9/app/code/core/mage/core/block/template.php(286): mage_core_block_template->renderview() #7 /mydir//magento_1.9/app/code/core/mage/core/block/abstract.php(919): mage_core_block_template->_tohtml() #8 /mydir//magento_1.9/app/code/core/mage/core/block/text/list.php(43): mage_core_block_abstract->tohtml() #9 /mydir//magento_1.9/app/code/core/mage/core/block/abstract.php(919): mage_core_block_text_list->_tohtml() #10 /mydir//magento_1.9/app/code/core/mage/core/block/abstract.php(637): mage_core_block_abstract->tohtml() #11 /mydir//magento_1.9/app/code/core/mage/core/block/abstract.php(581): mage_core_block_abstract->_getchildhtml('content', true) #12 /mydir//magento_1.9/app/design/frontend/shopper/default/template/page/2columns-left.phtml(59): mage_core_block_abstract->getchildhtml('content') #13 /mydir//magento_1.9/app/code/core/mage/core/block/template.php(241): include('/var/www/vhosts...') #14 /mydir//magento_1.9/app/code/core/mage/core/block/template.php(272): mage_core_block_template->fetchview('frontend/shoppe...') #15 /mydir//magento_1.9/app/code/core/mage/core/block/template.php(286): mage_core_block_template->renderview() #16 /mydir//magento_1.9/app/code/core/mage/core/block/abstract.php(919): mage_core_block_template->_tohtml() #17 /mydir//magento_1.9/app/code/core/mage/core/model/layout.php(555): mage_core_block_abstract->tohtml() #18 /mydir//magento_1.9/app/code/core/mage/core/controller/varien/action.php(390): mage_core_model_layout->getoutput() #19 /mydir//magento_1.9/app/code/local/etech/customersupport/controllers/indexcontroller.php(27): mage_core_controller_varien_action->renderlayout() #20 /mydir//magento_1.9/app/code/core/mage/core/controller/varien/action.php(418): etech_customersupport_indexcontroller->indexaction() #21 /mydir//magento_1.9/app/code/core/mage/core/controller/varien/router/standard.php(250): mage_core_controller_varien_action->dispatch('index') #22 /mydir//magento_1.9/app/code/core/mage/core/controller/varien/front.php(172): mage_core_controller_varien_router_standard->match(object(mage_core_controller_request_http)) #23 /mydir//magento_1.9/app/code/core/mage/core/model/app.php(354): mage_core_controller_varien_front->dispatch() #24 /mydir//magento_1.9/app/mage.php(684): mage_core_model_app->run(array) #25 /mydir//magento_1.9/index.php(87): mage::run('', 'store') #26 {main}";s:3:"url";s:5:"/mgt/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:7:"default”;}
nsconfig details
<?php $nsendpoint = "2015_1"; $nshost = "https://webservices.na1.netsuite.com"; $nsemail = "*****@*****.com"; $nspassword = “********"; $nsrole = "3"; $nsaccount = “******"; ?>
it fixed hardcoding entire content of nsconfig.php nsphpclient.php inside constructor nsphpclient class.
Comments
Post a Comment