Skip to content

Instantly share code, notes, and snippets.

@dongilbert
Created August 5, 2013 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dongilbert/6158384 to your computer and use it in GitHub Desktop.
Save dongilbert/6158384 to your computer and use it in GitHub Desktop.
SOAP :(

I'm have a camping/resort/rv website that uses PHP's native SoapClient class to request availability for units within a resort. The end users fill out a form indicating the type of unit they would like, dates, number of adults, etc things like that, and then we use that data in the SOAP request. Most of the time, it works as expected.

There have been reports where a user is checking availability on a unit but the data returned indicates none are available. Then, if they switch to a new browser, and do the same search over, it's showing that they ARE in fact available.

This is perplexing, because we aren't doing any caching of the returned data, as it's (obviously) required to be up to date at all times.

I suspect that the SOAP server is set up with persistance, but I can't tell. My client's IT guy isn't very forthcoming with the data. He says that he's been able to reproduce the bug (I haven't).

Finally, we're looking at ways to debug this. I have no access to the data behind the SOAP server, so I can't tell what availability is supposed to be. The only thing I can think of to do is log all the availability requests and then review them the next time the error occurs.

Any thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment