在哪里可以找到 Axis WSDL2Java 文件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1660905/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where I can find Axis WSDL2Java file?
提问by newbie
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/java/user-guide.html#WSDL2JavaBuildingStubsSkeletonsAndDataTypesFromWSDL) in their site. Where I can get that file ?
我下载了 Axis 1.4 ( http://www.nic.funet.fi/pub/mirrors/apache.org/ws/axis/1_4/),我想使用 WSDL2Java,但我没有从包中找到这样的文件,但是在他们的站点中有对此文件的引用(http://ws.apache.org/axis/java/user-guide.html#WSDL2JavaBuildingStubsSkeletonsAndDataTypesFromWSDL)。我在哪里可以得到那个文件?
采纳答案by Brian Agnew
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)
您将在“org.apache.axis.wsdl.WSDL2Java”中找到Axis WSDL-to-Java 工具。基本调用形式如下所示:
% java org.apache.axis.wsdl.WSDL2Java (WSDL-file-URL)
回答by Nazeer
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.
当我尝试使用wsdl2java
轴 1.4时,我遇到了同样的问题。但是找不到wsdl2java
文件。我所做的就是,我已经采取了wsdl2java
从axis2
和修改根据轴1.4 jar文件等我跑它轴1.4。我可以设法获取带有一些警告的 java 类文件。我不关心警告。
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.
无论如何,我从带有轴 1.4 的 wsdl 获得了所有 java 类文件。但是,我觉得如果将其从轴 1.4 迁移到轴 2 会是更好的选择。
回答by johnthuss
Here is a simple bash script to invoke WSDL2Java that you can place in the "lib" directory and run:
这是一个调用 WSDL2Java 的简单 bash 脚本,您可以将其放置在“lib”目录中并运行:
#! /bin/bash
CP="."
for JAR in `ls *.jar`; do
CP="$CP:$JAR"
done
#echo "classpath = $CP"
java -cp $CP org.apache.axis.wsdl.WSDL2Java $@
回答by Peter
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.
我以为我会提供更新的答案。目前,wsdl2java 位于 Apache CXF 包中。如果您解压缩它,您会在 bin 目录中找到方便的脚本,这些脚本简化了执行过程。
Download: http://cxf.apache.org/download.html
Directions for use: https://cxf.apache.org/docs/wsdl-to-java.html
下载:http: //cxf.apache.org/download.html
使用说明:https: //cxf.apache.org/docs/wsdl-to-java.html