BizTalk Utilities CV ,   Jobs ,   Code library
 
Go to the front page to continue learning about XML or select below:

Contents

ReBlogger Contents

Previous posts in WS, web services

 
 
Page 11575 of 19642

How to get web service response cookies

Blogger : Macromedia MXNA: WS, Ajax and XSLT
All posts : All posts by Macromedia MXNA: WS, Ajax and XSLT
Category : WS, web services
Blogged date : 2006 Jun 21

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
Page 11575 of 19642

Newest posts
 

    Email TopXML