Righto, I'm having a bit of soap trouble here.
I've got a site calling a merchant's web service. It's all set up using nusoap and works... ish.
The main problem I've got is performance, and the odd rogue response. Performance-wise, it's incredibly slow. Shockingly slow. I'm sure a fair chunk of this is down to the merchant's server, but I
am pretty sure that nusoap isn't helping. Rogue response-wise, maybe every 1 in 10 calls I'm making are returning really odd results. Looking at the resquest and response, the response coming back is duff - it's not a processing problem at my end. Refreshing the page loads results perfectly (probably due to query and response being cached at merchant end). I'm assuming that the server is taking so long that it's crapping out and sending me duff responses, but by the time I've refreshed it's had enough time to properly complete the initial query.
So, after beta testing my site and not being happy with the results, I thought I'd pick apart the nusoap stuff and replace with php's native soap client.
I'm a bit confused by this - the data I'm getting back if one humongous string, containing the entire xml soap response, within an object. Is that normal? I've never used PHP5's soap client before, and tutorials show the data nicedly parsed and formatted. I'm not supposed to be getting a string of raw xml
am I?
Anyone got any ideas about PHP5's soap? Or has anyone got any idea performance tips for nusoap?
Cheers