Jump to content

Soap Call retry 3 times then continue


zep

Recommended Posts

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!

Link to comment
https://forums.phpfreaks.com/topic/129565-soap-call-retry-3-times-then-continue/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.