Generation of JAXB based WebService Client(Stub) from WSDL

核能气质少年 提交于 2019-11-30 19:38:30

问题


We have a requirement where we need to develop a webservice client based upon JAXB. We have only the WSDL url with us. Is there any such tool exist which can do this for us ?

As of now we are thinking of xjc tool, but that takes a xsd file as input whereas we have the WSDL file with us to generate the Stubs.

Please advise.

Regards S


回答1:


You can always use CXF which uses JAXB by default.

Using CXF generated Client you can have what you need (a client) using only WSDL.

Just use:

wsdl2java -d <output-directory> -client <wsdlurl>


来源:https://stackoverflow.com/questions/8599978/generation-of-jaxb-based-webservice-clientstub-from-wsdl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!