2

I know that you can cache the WSDL but is there a way to cache the soap responses through configuration of the php soapclient?

Obviously, we could "cache" ourselves by constructing some tables in a database and running a cron. This will take much more effort and I am wondering if there is a way to specify caching abilities of the explicit SOAP data being returned from soap server to client.

Similar to how a browser can cache various data based on headers ?

Do I need to have the soap server configured properly or is this something I can do strictly on the soapclient.

Our soap server is a 3rd party vendor which we have little control over so I am hoping to keep the solution to soapclient side if possible.

Open to all suggestions/alternatives (aside from the one I mentioned) if this does not exist.

1 Answer 1

3

In short - No. That type of caching is very application-specific, so it's not built in to the protocol for you. I would say that the solution you chalked up your self is a good way to go. A side effect of such a queue is that you get a level of decoupling between your main application and the external service. This can be useful for a lot of things, once you get past the initial development phased (debugging, service windows, logging etc.)

2
  • Thanks for the answer I did not want to hear. :-) Time to start implementing.
    – Chris
    Sep 28, 2010 at 13:36
  • Ha ha. You're welcome. If you need some more reading, do a lookup for anti corruption layer, which is a concept coined by Eric Evans.
    – troelskn
    Sep 29, 2010 at 9:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.