Where I can find Axis WSDL2Java file?
I downloaded Axis 1.4 ( http://www.nic.funet.fi/pub/mirrors/apache.org/ws/axis/1_4/ ) and I wanted to use WSDL2Java, but I didn't find such a file from package, but there are refrences to this file ( http://ws.apache.org/axis/jav开发者_StackOverflow中文版a/user-guide.html#WSDL2JavaBuildingStubsSkeletonsAndDataTypesFromWSDL ) in their site. Where I can get that file ?
Here is a simple bash script to invoke WSDL2Java that you can place in the "lib" directory and run:
#! /bin/bash
CP="."
for JAR in `ls *.jar`; do
CP="$CP:$JAR"
done
#echo "classpath = $CP"
java -cp $CP org.apache.axis.wsdl.WSDL2Java $@
From the doc
You'll find the Axis WSDL-to-Java tool in "org.apache.axis.wsdl.WSDL2Java". The basic invocation form looks like this:
% java org.apache.axis.wsdl.WSDL2Java (WSDL-file-URL)
I thought I would provide an updated answer. Currently, wsdl2java is located in the Apache CXF package. If you extract it you will find handy scripts in the bin directory that simplify the execution process.
Download: http://cxf.apache.org/download.html
Directions for use: https://cxf.apache.org/docs/wsdl-to-java.html
I encountered the same problem when I tried to use wsdl2java
with axis 1.4. But couldn't find the wsdl2java
file. What I did was, I have taken wsdl2java
from axis2
and modified according to axis 1.4 jar files and etc. I run it for axis 1.4. I could manage to get java class files with some warning. I dont bother about warning.
Anyway, I got all java class files from wsdl with axis 1.4. However, I feel that it would be better choice if you migrate it from axis 1.4 to axis2.
Download cxf from https://cxf.apache.org/download.html (Binary distribution)
Here is example for version 3.4.3.
Just unpack it to the desired folder and You can find it in apache-cxf-3.4.3\bin
精彩评论