troubleshooting Question

Page rendering before nuSOAP call complete

Avatar of mattpotter1981
mattpotter1981 asked on
Web Languages and StandardsPHPWeb Applications
3 Comments1 Solution259 ViewsLast Modified:
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?

Thanks
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros