envelope content
1 TopicCache based on SOAP XML Envelope content
Hi guys! We got a tricky question from our developers. They have a service which gets a bit too much traffic and would like to cache the responses for around 10 seconds based on the content in the envelope tag of a SOAP request. I have an idea but I'd like to check with you guys first before starting to look into it properly. So here's the sample SOAP request (could not paste it here so I needed to use tny): http://tny.cz/bbfdf261 My idea is to parse the SOAP request and create an URI out of the envelope content and cache the request based on the URI: https://subdomain.domain.com/PartnerService/PartnerServices.svc?FetchLiveMarkets=1&siteid=1&numberofmarkets=10&timezonename&gmtstandardtime&partnerref=1 Looking into either using HTTP::payload or the XML commands (not sure if I can trust them in production though as it requires an EA license. The alternative is to throttle the incoming requests and limit them to 1 per second but I prefer not to go down that route if the caching works. Perhaps there's a better way? Grateful for any ideas, suggestions or even warnings. :) Kind regards, Patrik609Views0likes3Comments