[英]generating a webservice client
Please I want to generate a webservice client from a wsdl through a command line (or java code) and i want to have all this classes generated ( This can be done manually in eclipse by creating a webservice client) : 请我想通过命令行(或Java代码)从wsdl生成一个Web服务客户端,并且我想生成所有这些类(这可以通过创建Web服务客户端在Eclipse中手动完成):
I want to have for example : 我想举例如:
getrecordsrespondsgetrecordsresult.java
thewebservice.java
thewebserviceLocator.java
XXXXSOAP.java
XXXXSOAPPROXY.java
XXXXSTUB.java
I have already tried with the wsimport and WSDL2java but it doesnt generate all the classes I need maybe i didnt put the right options. 我已经尝试过wsimport和WSDL2java,但是它没有生成我需要的所有类,也许我没有输入正确的选项。
Thank you. 谢谢。
Try wsdl2java -client HelloWorld.wsdl 尝试wsdl2java -client HelloWorld.wsdl
More details here: http://cxf.apache.org/docs/wsdl-to-java.html 此处有更多详细信息: http : //cxf.apache.org/docs/wsdl-to-java.html
Assuming you are using one of the favorite tools Apache CXF. 假设您正在使用最受欢迎的工具之一Apache CXF。
Try This 尝试这个
WSDL2Java -role "client" -verbose C:\\Users\\n118941\\Desktop\\jaxb\\ProvInformation.wsdl
WSDL2Java-角色“客户端”-详细C:\\ Users \\ n118941 \\ Desktop \\ jaxb \\ ProvInformation.wsdl
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.