How to get web service response cookies
So yesterday I wrote about how to get the Axis engine that underlies the ColdFusion web services to send cookies in the request. The follow on question asked shortly after I posted that was how do I get cookies sent to me from (say) an initial login request to the web service. Here is how to do that: ws = CreateObject("webservice", ...);ws.setMaintainSession(true); // required so axis will do cookiesret = ws.log_in_or_something();...// Get cookies returned from server (if any)call = ws._getCall();ctx = call.getMessageContext();server_cookies = ctx.getProperty("Cookie"); Getting the cookies out of the Axis MessageContext will return either a single string if there
Read comments or post a reply to : How to get web service response cookies