Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有很多服务/类,我必须编写一个代码,从一个目录中生成一个 wsdl,然后选择一个服务/java 类,然后生成 wsdl。
例如
For(File file in Filew) { file.generatewsdl(path,name); // for every class/service }
就像所有 java clases 或 wevservice 一样。我不必从 IDE 显式生成 wsdl,如果添加了任何新服务,那么它将在运行程序时生成 wsdl
我认为 Apache CXF 工具“java2wsdl”可能会对您有所帮助。
这是链接:https ://cxf.apache.org/docs/java-to-wsdl.html