File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Installing Apache Axis on  Tomcat 4.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Installing Apache Axis on  Tomcat 4.0" Watch "Installing Apache Axis on  Tomcat 4.0" New topic
Author

Installing Apache Axis on Tomcat 4.0

Sachin Dere
Ranch Hand

Joined: Jan 14, 2003
Posts: 80
Hi Guys,
I just downloaded Apache Axis1.2 on my machine.I have Tomcat4.0. Can i install it on Tomcat4.0 instead of 4.1? Also i need to connect to a WebService for which they have recommended to use Axis. SO can i write my Client on Axis platform for connecting to the WebService. Also,they have give me a WSDL file which apparently is generated through MSSOAP.
so can i call methods from axis client to the WSDL file
Please help me here would highly appreciate it
thanks,
Sachin
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Originally posted by Sachin Dere:
Hi Guys,
I just downloaded Apache Axis1.2 on my machine.I have Tomcat4.0. Can i install it on Tomcat4.0 instead of 4.1?


Yes, see http://ws.apache.org/axis/java/install.html for further info.

Originally posted by Sachin Dere:
Also,they have give me a WSDL file which apparently is generated through MSSOAP.
so can i call methods from axis client to the WSDL file


Yes as long axis supports the encoding used by the webservice, mostly it works, have a look at WSDL2Java under apache axis website http://ws.apache.org/axis


Spritle Software Blogs
Sachin Dere
Ranch Hand

Joined: Jan 14, 2003
Posts: 80
Hi guys,
Thanks for replying.as u know i know nothing about Axis SOAP and am just trying to figure it out as im required to post Data using Axis to a WebService.
I managed to run WSDL2Java from the wsdl file and it created the Java files. what do i have to do now? whats the next step? i have already written a code based on DynamicInvoker from the Axis Sample folder but it gives me the following error:
java.lang.NullPointerException
at com.axissoap.client.MaxisSoapClient.getParamData(MaxisSoapClient.java:190)
at com.axissoap.client.MaxisSoapClient.invokeMethod(MaxisSoapClient.java:151)
at com.axissoap.client.MaxisSoapClient.main(MaxisSoapClient.java:326)
Exception in thread "main"

I have about 20 parameters to post and this is the wsdl file : http://202.75.163.46:2503/ECPAWSDL/ECPA32.WSDL

Please help me here.
thanks,
Sachin
Pradeep Ram
Greenhorn

Joined: Sep 29, 2004
Posts: 18
Sachin,
What operation are you trying to invoke that gives you NullPointer exception ? What style are you using RPC/Document/Message ? I have generated the stubs from the WSDL, could you give me some sample paramters, I should be able to run and test it.
--pradeeP
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Installing Apache Axis on Tomcat 4.0