> I would also like to know the whys and wherefores of web > services and session variables. I thought I've heard you can > do something with a façade CFC, but I have never figured it out. > > I presume the difficulty is that a web service request does > not pass the cfide & cftoken cookie information that CF needs > to associate a request to a session the way that a browser's > http request does. > > But can one do this manually or not is a question I would > like answered.
Web service requests are just HTTP POST requests containing a SOAP envelope as the request body. So, if the HTTP client in question (or, more exactly, the program someone wrote that uses HTTP and SOAP) can read cookies from the initial response and send those cookies on subsequent responses, you're all set, and you can use session variables just like you would with regular browsers and HTML pages. But if you don't want to depend on whether SOAP clients will return cookies, you can require that all SOAP clients call a login or initialization service, which can return a token of your choice. You could then require that token as an argument to all the other services you're exposing, and that would be used to associate that client with a "session" of some sort. What sort that would be, is up to you. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249336 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

