Hi, The problem with classpath ordering was resolved sometime ago.
I notice from your classpath that you're using the Axis (java) 1.3 JARs, the Axis C++ WSDL2Ws tool is built and tested in combination with Axis 1.2 - it could be there is an incompatibility with the later version. I would recommend using the JAR files provided with the Axis C++ package - these can be found in lib/axisjava. Adrian _______________________________________ Adrian Dick ([EMAIL PROTECTED]) "Michael Thadani" <[EMAIL PROTECTED]> wrote on 31/01/2006 00:23:39: > I recently deployed an axis java on my server and was wishing to > develop a c++ client to consume the webservice on it. > > However, I have stumbled into a wall with the wsdl2ws tool – it > doesn’t seem to run L > > The exception I am encountering is: > > java org.apache.axis.wsdl.wsdl2ws.WSDL2Ws SimpleWebService.wsdl -lc++ -sclient > Exception in thread "main" java.lang.NoSuchMethodError: org.apache. > axis.wsdl.symbolTable.BindingEntry.getBindingStyle() > Lorg/apache/axis/enum/Style; > at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.setMethodInfo(Unknown Source) > at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.getServiceInfo(Unknown Source) > at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws. > generateWrappers(Unknown Source) at org.apache.axis.wsdl. > wsdl2ws.WSDL2Ws.main(Unknown Source) > > I had a look through the archive of old posts but I couldn’t find a > case where it had been successfully resolved. > > I read in the user guide to ensure wsdl 2ws.jar was ahead of axis. > jar and have done so but still encounter the issue. > > I have included the contents of my current $CLASSPATH > > /home/mthadani/axisc-1.5.0-linux/lib/axis/wsdl2ws.jar: > /home/mthadani/axis-1_3/lib/commons-discovery-0.2.jar: > /home/mthadani/axis-1_3/lib/commons-logging-1.0.4.jar: > /home/mthadani/axis-1_3/lib/jaxrpc.jar: > /home/mthadani/axis-1_3/lib/saaj.jar: > /home/mthadani/axis-1_3/lib/log4j-1.2.8.jar: > /home/mthadani/axis-1_3/lib/xml-apis.jar: > /home/mthadani/axis-1_3/lib/mail.jar: > /home/mthadani/axis-1_3/lib/axis-schema.jar: > /home/mthadani/axis-1_3/lib/wsdl4j-1.5.1.jar: > /home/mthadani/axis-1_3/lib/axis-ant.jar: > /home/mthadani/axis-1_3/lib/axis.jar:/home/mthadani/axis-1_3: > /home/mthadani/jetty-5.1.10/lib/org.mortbay.jetty.jar: > /home/mthadani/jetty-5.1.10/lib/javax.servlet.jar: > /home/mthadani/jetty-5.1.10/ext/jasper-runtime.jar: > /home/mthadani/jetty-5.1.10/ext/jasper-compiler.jar: > /home/mthadani/jetty-5.1.10/ext/xercesImpl.jar: > /home/mthadani/jetty-5.1.10/ext/ant.jar:/home/mthadani/jetty-5.1. > 10/ext/commons-el.jar:/home/mthadani/jetty-5.1.10/ext/activation. > jar:/home/mthadani/jetty-5.1.10/mx4j.jar:/home/mthadani/jetty-5.1. > 10/mx4j-tools.jar:/usr/java/j2sdk1.4.2_09/lib/tools.jar:. > > Any assistance would be most welcome > > Michael
