crafterm    2003/01/21 08:19:45

  Modified:    src/java/org/apache/cocoon/components/language/markup/xsp/java
                        soap.xsl
  Log:
  Added explicit cast of target URL to a String object. This allows
  constructs like:
  
  <soap:call>
    <soap:url><xsp-session:get-attribute name="target"/></soap:url>
    <!-- rest of soap query -->
  </soap:call>
  
  to now work, previously this would fail at compile time because
  xsp-session:get-attribute returns an Object, and SOAPHelper requires a
  String.
  
  Reviewed by: Ovidiu Predescu <[EMAIL PROTECTED]>
  
  Revision  Changes    Path
  1.4       +7 -4      
xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/java/soap.xsl
  
  Index: soap.xsl
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/java/soap.xsl,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- soap.xsl  30 Jul 2002 01:32:58 -0000      1.3
  +++ soap.xsl  21 Jan 2003 16:19:45 -0000      1.4
  @@ -128,12 +128,15 @@
         </xsl:call-template>
       </xsl:variable>
       <xsp:logic>
  -      getLogger().debug("XScriptObject for soap:call is\n" + <xsl:value-of 
select="$object"/>);
  +      getLogger().debug(
  +          "XScriptObject for soap:call is\n" + <xsl:value-of select="$object"/> +
  +          ", sending request to: " + <xsl:value-of select="$url"/>
  +      );
         try {
           xscriptManager.put(pageScope, objectModel, "soap:call",
             ((new SOAPHelper(manager,
                              XSPRequestHelper.getRequestedURL(objectModel),
  -                           <xsl:value-of select="$url"/>,
  +                           (String) <xsl:value-of select="$url"/>,
                              <xsl:value-of select="$method"/>,
                              <xsl:value-of select="$object"/>
                              )).invoke()),
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to