You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-dev@ws.apache.org by sc...@apache.org on 2005/05/24 18:40:39 UTC
svn commit: r178203 -
/incubator/muse/trunk/src/site/content/interop/soapclient.xml
Author: scamp
Date: Tue May 24 09:40:35 2005
New Revision: 178203
URL: http://svn.apache.org/viewcvs?rev=178203&view=rev
Log: (empty)
Added:
incubator/muse/trunk/src/site/content/interop/soapclient.xml
Added: incubator/muse/trunk/src/site/content/interop/soapclient.xml
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/soapclient.xml?rev=178203&view=auto
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/soapclient.xml (added)
+++ incubator/muse/trunk/src/site/content/interop/soapclient.xml Tue May 24 09:40:35 2005
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+
+<project name="soapClient" default="sendRequest" basedir=".">
+
+ <property environment="env" />
+ <property file="build.properties" />
+ <property file="../build.properties" />
+
+ <!-- workaround for those IDEs that dont set ant.home as per the ant script -->
+ <property name="ant.home" value="env.ANT_HOME"/>
+
+
+ <target name="init">
+
+ <available file="../../webapps/hermes" type="dir" property="dist.hermes.webapp.dir" value="../../webapps/hermes" />
+ <condition property="hermes.webapp.dir" value="${dist.hermes.webapp.dir}">
+ <isset property="dist.hermes.webapp.dir"/>
+ </condition>
+ <fail unless="hermes.webapp.dir" message="webapp dir ../../webapps/hermes does not exist." />
+ <echo>Using webapp dir: ${hermes.webapp.dir}</echo>
+
+ <path id="hermes.classpath.id">
+ <pathelement location="${hermes.webapp.dir}/WEB-INF/classes" />
+ <fileset dir="${hermes.webapp.dir}/WEB-INF/lib" includes="*.jar" />
+ <pathelement location="${activation.jar}" />
+ <pathelement location="${mail.jar}" />
+ </path>
+ <property name="hermes.classpath" refid="hermes.classpath.id" />
+
+ </target>
+
+ <target name="sendRequest"
+ depends="init"
+ description="sends a SOAP request">
+
+ <fail unless="url" message="Please set the url property via -Durl=... when invoking this script." />
+ <fail unless="xml" message="Please set the xml property via -Dxml=... when invoking this script." />
+ <echo>Reading SOAP request from: ${xml} ,,,</echo>
+ <available file="${xml}" property="xml.exists" />
+ <fail unless="xml.exists" message="The specified request XML file ${xml} does not exist." />
+ <available file="${xml}" type="file" property="xml.is.file" />
+ <fail unless="xml.is.file" message="The specified request XML file ${xml} exists but is not a file." />
+
+ <echo>Sending SOAP request to ${url} ...</echo>
+ <echo />
+ <echo>========================== REQUEST ============================</echo>
+ <concat><path><pathelement location="${xml}" /></path></concat>
+ <echo />
+ <echo>========================== RESPONSE ============================</echo>
+ <taskdef name="soapClient" classname="org.apache.ws.util.soap.SoapClientTask" classpath="${hermes.classpath}" />
+ <soapClient serviceURL="${url}" requestFile="${xml}" soapAction="${action}" />
+
+ </target>
+
+ <target name="usage">
+ <java classname="org.apache.tools.ant.Main">
+ <arg value="-buildfile" />
+ <arg value="${ant.file}" />
+ <arg value="-projecthelp" />
+ </java>
+ </target>
+
+</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org