Generation of JAXB based WebService Client(Stub) from WSDL

前端 未结 2 2010
感动是毒
感动是毒 2021-01-06 23:38

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 c

相关标签:
2条回答
  • 2021-01-07 00:25

    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>
    
    0 讨论(0)
  • 2021-01-07 00:34

    I know it's old, but if anybody else stumbles about it:

    A WSDL contains the schema for the domain objects in between the <types>-Tag.

    The default tool xjc can parse wsdl with the -wsdl command line option.

    0 讨论(0)
提交回复
热议问题