Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.