zep Posted October 22, 2008 Share Posted October 22, 2008 Hey all, I am writing a script to hit a webservice and store the info in my database, unfortunetly, sometimes the soap call comes back with bad headers, and my script stops. Id like to hit the service, and if it comes back with an error, try again 2 more times before giving up, and moving to the next call. I tried something like this do { $response = $client->getProductDetail($objRequest); } while (false != is_soap_fault($response)); to see if it would loop (I know it doesnt try 3 times) Im executing this through SSH when I root into my server, so I can echo where I am in hte script as it executes. Any one know how I might achieve this? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/129565-soap-call-retry-3-times-then-continue/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.