axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kumar, Amit Z \(Compliance Tech\)" <amit.z.ku...@gs.com>
Subject RE: [Axis2] Develop Client
Date Wed, 30 Aug 2006 20:52:02 GMT
Use this ant target and replace "Red" comments as per your local machine
setting. It will generate client jar foe you. Put this jar in your
classpath to run your test client.
 
 
<target name="WebServiceStub" >
 <echo message="generating client src..."/>
 <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
  <classpath>
      <fileset dir=" path to axis2 lib ">
   <include name="**/*.jar"/>
      </fileset>
  </classpath>      
  <arg value="-uri"/>
  <arg line=" url for wsdl "/>
  <arg value="-s"/>
  <arg value="-d"/>
  <arg value="xmlbeans"/>
  <arg value="-o"/>
  <arg file=" src directory "/>
  <arg value="-p"/>
  <arg value=" any package name "/>
 </java>
 
 <echo message="compiling client src..."/>     
 <javac srcdir=" src directory /src" destdir=" build directory ">
  <classpath>
      <fileset dir=" path to axis2 lib ">
   <include name="**/*.jar"/>
      </fileset>             
  </classpath>
 </javac>  
 
 <copy todir="build directory">
  <fileset dir=" src directory /resources/"/>
 </copy>
  
 <jar jarfile="YourWebService_stub.jar" basedir=" build directory "/>
 
 <delete dir=" build directory "/>
 
  </target> 
 
 
I hope, it will help.

Regards 
Amit 
30, Hudson St. 
Goldman Sachs 
PH: 212 902 0395 

"Willing to learn what you are willing to share."

 


________________________________

	From: Ignazio Anastasi [mailto:craig.doppiaeffe@gmail.com] 
	Sent: Wednesday, August 30, 2006 4:25 PM
	To: axis-user
	Subject: [Axis2] Develop Client
	
	
	Hi all
	
	i'm a newbie :-)
	
	i need help to develop the client of the example in this site
http://www.wso2.net/tutorials/axis2/java/2006/05/29/hello-world
	
	however.. how can i run a client? it should be runned from an
axis2 directory? how can i build a run.bat file correctly'
	
	tnx
	


Mime
View raw message