Hello,
This is my first attempt at accessing a remote web service utilizing
Apache Axis. My code is bailing when I try to create an instance of the
org.apache.axis.client.Service class, using the default constructor. The
error I'm seeing is below, and my code follows. Also, I see all
over the place that I should/need/shouldn't/don't need JDK 1.4.
What's the truth???
Thanks in advance for any help!
MB
-----------
C:\JBuilder4\jdk1.3\bin\javaw -classpath
"C:\Projects\STM\classes;C:\JBuilder4\lib\parser.jar;C:\JBuilder4\lib\xerces.jar;C:\xml-axis-10\lib\axis-ant.jar;C:\xml-axis-10\lib\axis.jar;C:\xml-axis-10\lib\commons-discovery.jar;C:\xml-axis-10\lib\commons-logging.jar;C:\xml-axis-10\lib\jaxrpc.jar;C:\xml-axis-10\lib\log4j-1.2.4.jar;C:\xml-axis-10\lib\saaj.jar;C:\xml-axis-10\lib\wsdl4j.jar;C:\JBuilder4\jdk1.3\demo\jfc\Java2D\Java2Demo.jar;C:\JBuilder4\jdk1.3\jre\lib\i18n.jar;C:\JBuilder4\jdk1.3\jre\lib\jaws.jar;C:\JBuilder4\jdk1.3\jre\lib\rt.jar;C:\JBuilder4\jdk1.3\jre\lib\sunrsasign.jar;C:\JBuilder4\jdk1.3\lib\dt.jar;C:\JBuilder4\jdk1.3\lib\tools.jar"
com.goldsys.custom.stm.STMWebRequest
java.lang.NoSuchMethodError
at
org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.java:104)
at
org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:210)
at org.apache.axis.AxisEngine.init(AxisEngine.java:188)
at
org.apache.axis.AxisEngine.<init>(AxisEngine.java:173)
at
org.apache.axis.client.AxisClient.<init>(AxisClient.java:90)
at org.apache.axis.client.Service.getAxisClient(Service.java:143)
at org.apache.axis.client.Service.<init>(Service.java:213)
at
com.goldsys.custom.stm.STMWebRequest.getCustomer(STMWebRequest.java:83)
at com.goldsys.custom.stm.STMWebRequest.main(STMWebRequest.java:99)
Exception in thread "main"
-----------------------
Line 83 is "service = new Service()"
try{
/*
qName
= new QName(ISTM.NAMESPACE_URI,serviceName);
service
= new Service(ISTM.ENDPOINT_ADDRESS,qName);
*/
service
= new Service();
call
= (Call)service.createCall();
call.addParameter("Language",null,ParameterMode.IN);
call.addParameter("SessionIdentifier",null,ParameterMode.IN);
call.addParameter("CustomerIdentifier",null,ParameterMode.IN);
}catch(Exception e){
return
null;
//
RS? Do something
}