I've got a site connected through to a SOAP web service at another company. Connection is fine, and 95% of the time all is good.
I'm connecting through nusoap, and every now and again the page will screw up when presenting data through some foreach loops in there. Basically, it looks like the foreach loops are kicking in before the full soap response has been fully received.
If I wait, say, another 10 seconds and view source in the browser, it's all perfectly formatted and correct. But it doesn't match what's actually shown in the browser. Refresh the page, and it loads perfectly straight away.
Is there any way I can stop all php code from running until the soap call has completely finished?