Cancelado

SOAP problems with magento

We have had soap working with magento but has suddenly stopped working and causing errors in our script.

making this call twice seemed to fix the problem to the proxy and sessionID

<?

//$proxy = new SoapClient('[url removed, login to view]', array('trace'=>1));

$proxy = new SoapClient('[url removed, login to view]');

$sessionId = $proxy->login('xxx', 'xxx');

$row_rsGetOrderInfo=$proxy->call($sessionId, '[url removed, login to view]', 100000324);

$trackitem_shipmethod=$row_rsGetOrderInfo[shipping_description];

echo "SHIP METHOD: $trackitem_shipmethod<BR><BR>";

//try { $row_rsGetOrderInfo=$proxy->call($sessionId, '[url removed, login to view]', 100000319); } catch(SoapFault $soapFault){

//echo "<br><br>Fault: " . var_dump($soapFault);

//echo "<br><br>Request :<br>", htmlentities($proxy->__getLastRequest()), "<br>";

//echo "<br><br>Response :<br>", htmlentities($proxy->__getLastResponse()), "<br>";

//}

//$proxy = new SoapClient('[url removed, login to view]');

//$sessionId = $proxy->login('xxx', 'xxx');

$row_rsGetOrderInfo=$proxy->call($sessionId, '[url removed, login to view]', 100000324);

$trackitem_shipmethod=$row_rsGetOrderInfo[shipping_description];

echo "SHIP METHOD: $trackitem_shipmethod<BR><BR>";

?>

We then discovered last night that reinstantiate the SoapClient Object worked but today we have new / more problems with getting soap to work which previously worked:

Just worked out that I only need to reinstantiante the SoapClient object for it to work. I dont even need to log back in to the session.

i.e. I can do this first:

$proxy = new SoapClient('[url removed, login to view]');

$sessionId = $proxy->login('xxx', 'xxx');

Then execute a query:

try { $countries = $proxy->call($sessionId, '[url removed, login to view]'); } catch(Exception $e){ echo "<BR>ERROR Code : " . $e->getCode() . ": " . $e->getMessage(); }

Next time I just:

$proxy = new SoapClient('[url removed, login to view]');

then execute another query.

And this works.

Are you there?

I've just recoded all that - run 5 test orders through successfully.

Noticed a small error with the order comments which I fixed.

Went to retest a single order and now getting a different error:

ERROR Code : 0: SOAP-ERROR: Parsing WSDL: Couldn't load from '[url removed, login to view]'

Habilidades: Magento

Ver mais: magento proxy, soap error magento, magento proxy error, quot problem magento, soap fault magento, magento test soapclient, magento soap stopped working, magento wsdl, fix test request, magento soap problem, error login soap magento, magento soap login, magento trace soap, magento soap error, soapclient magento, magento error parsing wsdl, magento log soap response, soap magento test, soap test magento, trace, soap, magento errors, order working magento, api response time, magento order comments

Acerca do Empregador:
( 82 comentários ) karachi, Pakistan

ID do Projeto: #554290

2 freelancers estão ofertando em média $250 para este trabalho

bigans

Hello, We are experts in Magento. Thanks Biganswers

$250 USD in 4 dias
(11 Comentários)
4.3
eHeuristic

eHeuristic Solutions is an established player in the IT market, is a leading provider of comprehensive Web Products, Solutions and Internet Services, offering Custom Web Design, Web Script and Application, Web Programm Mais

$250 USD in 3 dias
(0 Comentários)
0.0