From: "Mike Cannon-Brookes" <[EMAIL PROTECTED]>
> For completeness (and because for a lot of tasks it's easier than using a
> body tag) I'd add a <http:param name="foo" value="bar" /> so that when
using
> posts or gets you can easily add dynamic parameters.
Good idea.
I've attached 0.2 of http-tags JAR which has the <http:param> tag added.
Both the <http:param> and the <http:header> can take the form
<http:param name="foo" value="bar" />
or
<http:param name="foo">bar</http:param>
For simplicity I've also added a new helper tag, <http:soap> for doing SOAP
requests in a less verbose style (it defaults the content type and allows
the SOAPAction to be specified as an attribute):-
<http:soap
url="http://services.xmethods.net:80/perl/soaplite.cgi"
SOAPAction="urn:xmethodsBabelFish#BabelFish">
<http:body>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<m:BabelFish xmlns:m="urn:xmethodsBabelFish">
<translationmode>en_fr</translationmode>
<sourcedata>SOAP is quite easy with JSP.</sourcedata>
</m:BabelFish>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
</http:body>
</http:soap>
An example web app and documentation is included in the JAR.
<James/>
James Strachan
=============
email: [EMAIL PROTECTED]
web: http://www.metastuff.com
__________________________________________________________________
If you are not the addressee of this confidential e-mail and any
attachments, please delete it and inform the sender; unauthorised
redistribution or publication is prohibited.
Views expressed are those of the author and do not necessarily
represent those of Citria Limited.
__________________________________________________________________
http-tags-0.2.jar