cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alfred Nathaniel <>
Subject Re: Parameterization in a SOAP Call
Date Tue, 01 Mar 2005 20:23:18 GMT
On Tue, 2005-03-01 at 09:29, Geert Josten wrote:

> I'm not sure whether it is possible to put a parameter in an attribute in XSP, just like
in XSL, but 
> you could easily add an XSL transform after the XSP generate. As far as I see and recall,
the XSP 
> generates a XML file with a soap: instruction. This is executed by some soap transformer,
am I 
> right? If so, adding an XSL transform just before that transformer should be easy.

Here is how to generate a dynamic attribute in XSP:

    String ipaddr = parameters.getParameter("ipaddr");
    String url = "http://" + ipaddr +

  <soap:call url="
    <xsp:attribute name="url"><xsp:expr>url</xsp:expr></xsp:attribute>

> > 
> > I need to parameterize the IP Address so that I can configure it for
> > different deployment environments viz. dev, prod etc. I have been able to
> > put the IP in the sitemap and retrieve it in the XSP, but cant seem to pass
> > it as a call to the SOAP request.
> > I'm trying to use <xsp:expr> for this.
> > 

HTH, Alfred.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message