Here is the XSP code. There is only a generator at the moment. Note that the xscript transform gives and error because it seems to call the cookie logicsheet at the wrong point (during the transform). If I create an XML fragment <token>bla</token> in the transform then I cannot figure out how to use it in a call the the cookie logicsheet.
<?xml version="1.0" encoding="ISO-8859-1"?> <xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:xsp-request="http://apache.org/xsp/request/2.0" xmlns:soap="http://apache.org/xsp/soap/3.0" xmlns:xscript="http://apache.org/xsp/xscript/1.0" xmlns:capture="http://apache.org/cocoon/capture/1.0" xmlns:xsp-cookie="http://apache.org/xsp/cookie/2.0" xmlns:xsp-token="http://adsconsult.com/xsp/token/1.0" > <xsp:logicsheet location="logicsheets/token.xsl"/> <bla> <xscript:variable name="soap-result"> <xsp-token:get-token aps="rcottiss4" user="administrator" pwd="" /> </xscript:variable> <xscript:variable name="stylesheet"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsp-cookie="http://apache.org/xsp/cookie/2.0" xmlns:x="http://tempuri.org/"> <xsl:template match="/"> <xsp-cookie:cookie> <xsp-cookie:name>testname1</xsp-cookie:name> <xsp-cookie:value><xsl:value-of select="/soap:Envelope/soap:Body/x:logonCEResponse/x:logonCEResult"/></x sp-cookie:value> <xsp-cookie:setMaxAge><xsp:expr>120*60</xsp:expr></xsp-cookie:setMaxAge> </xsp-cookie:cookie> <!-- I tried this also. See commented out code below --> <token> <xsl:value-of select="/soap:Envelope/soap:Body/x:logonCEResponse/x:logonCEResult"/> </token> </xsl:template> </xsl:stylesheet> </xscript:variable> <xscript:transform name="soap-result" stylesheet="stylesheet"/> <!-- <capture:fragment-variable name="tokenxml"> <xscript:transform name="soap-result" stylesheet="stylesheet"/> </capture:fragment-variable name="page_part"> <xsp-cookie:cookie> <xsp-cookie:name>testname1</xsp-cookie:name> <xsp:expr>tokenxml</xsp:expr> <xsp-cookie:setMaxAge><xsp:expr>120*60</xsp:expr></xsp-cookie:setMaxAge> </xsp-cookie:cookie> --> </bla> </xsp:page> Robin Cottiss Applied Decision Support -----Original Message----- From: [EMAIL PROTECTED] [mailto:Markdelanoy@;aol.com] Sent: Tuesday, October 29, 2002 9:46 AM To: [EMAIL PROTECTED] Subject: Re: Using SOAP Response in logic You might want to post your sitemap as well as the code used. It's hard to picture your problem without more contextual info such as code. Are you using XSP?? That would be the generator creating dynamic XML. Unless I missed the point of your question. thanks, md --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>