Grokbase Groups Ant dev March 2010
FAQ
Don't know if this helps or not:

<?xml version="1.0" encoding="UTF-8"?>
<project name="SOAP example" basedir=".">
<property environment="env"/>
<taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy">
<classpath>
<fileset dir="${env.GROOVY_HOME}" includes="embeddable/groovy-all-*.jar,lib/ivy*.jar"/>
</classpath>
</taskdef>
<groovy>
@Grab(group='org.codehaus.groovy.modules', module='groovyws', version='0.5.1')
import groovyx.net.ws.WSClient
def url = 'http://www.w3schools.com/webservices/tempconvert.asmx?WSDL'
def proxy = new WSClient(url, this.class.classLoader)
proxy.initialize()
result = proxy.CelsiusToFahrenheit(0)
new AntBuilder().echo "Help, I'm freezing at ${result} degrees Fahrenheit"
</groovy>
</project>

I was using Groovy 1.7.0.

Cheers, Paul.
On 16/03/2010 8:01 AM, Gilbert Rebhan wrote:
-------- Original Message --------
Subject: Re: ant+soap+ssl
From: Paul King<paulk@asert.com.au>
To: Ant Developers List<dev@ant.apache.org>
Date: 15.03.2010 22:29
I'd probably use Groovy or whatever your favorite JVM scripting language
is.
Groovy-WS is the library you would need. It uses Apache CXF under the
covers.
If you have trouble getting started I can try to find one of my existing
examples that does something similar.

Cheers, Paul.
Hi, Paul

Thanks for your quick reponse.
Thought of groovy already, because i'm a great fan of (j)ruby and both
have similarities, but have never tried groovy seriously before.
Also i have no further experience with webservices, i know the theory
and some basics, but have not really dealt with it.
Groovy is on my list for years, so maybe now is the time, any examples
are appreciated !


Regards, Gilbert


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 6 | next ›
Discussion Overview
groupdev @
categoriesant
postedMar 15, '10 at 9:08p
activeMar 17, '10 at 7:49p
posts6
users2
websiteant.apache.org

2 users in discussion

Paul King: 3 posts Gilbert Rebhan: 3 posts

People

Translate

site design / logo © 2017 Grokbase