
我想知道是否可以使用Spring Web Services从WSDL文件创建Web服务客户端.
我的意思是从WSDL开始,我暂时没有任何XSD.
但我读过Josh Long的“Spring Recipes A Problem-Solution Approach”,HamIDreza Sattari的“Spring Web Services 2 Cookbook”和教程本身(6. Using Spring Web Services on the Client),并没有提到这个功能.
我还阅读了其他帖子,如Webservice-Client: Common approach with Spring WS,JAXB and just one WSDL file?或Spring-ws client from WSDL(此处为stackoverflow),但没有任何进一步的结果.
我甚至在Spring论坛上提出了这个问题,但在超过60次读取之后没有回复:Is it possible to create a WS-client from WSDL file using SWS? (It seems not)
也许这是不可能的.
谢谢.
最佳答案你可以这样做:>使用JDK发行版附带的xjc工具生成java类型 – xjc -wsdl file.wsdl
>然后使用生成的java类型,使用webservicetemplate,描述here来创建客户端. 总结
以上是内存溢出为你收集整理的java – 是否可以使用Spring-WS从WSDL文件创建WS-client? (似乎没有)全部内容,希望文章能够帮你解决java – 是否可以使用Spring-WS从WSDL文件创建WS-client? (似乎没有)所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)