How do you convert WSDLs to Java classes using Eclipse?

前端 未结 6 1812
失恋的感觉
失恋的感觉 2020-11-30 00:50

I have a WSDL file (or, more precisely, its URL). I need to convert it to Java classes. I also need to provide tests for the web service it describes. I\'m new to web servi

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-30 01:31

    The Eclipse team with The Open University have prepared the following document, which includes creating proxy classes with tests. It might be what you are looking for.

    http://www.eclipse.org/webtools/community/education/web/t320/Generating_a_client_from_WSDL.pdf

    Everything is included in the Dynamic Web Project template.

    In the project create a Web Service Client. This starts a wizard that has you point out a wsdl url and creates the client with tests for you.

    The user guide (targeted at indigo though) for this task is found at http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.jst.ws.cxf.doc.user%2Ftasks%2Fcreate_client.html.

提交回复
热议问题