Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Installing Apache Axis on Tomcat 4.0

 
Sachin Dere
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sachin Dere
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic