How do you convert WSDLs to Java classes using Eclipse?

前端 未结 6 1811
失恋的感觉
失恋的感觉 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:48

    In Eclipse Kepler it is very easy to generate Web Service Client classes,You can achieve this by following steps .

    RightClick on any Project->Create New Other ->Web Services->Web Service Client->Then paste the wsdl url(or location) in Service Definition->Next->Finish

    You will see the generated classes are inside your src folder.

    NOTE :Without eclipse also you can generate client classes from wsdl file by using wsimport command utility which ships with JDK.

    refer this link Create Web service client using wsdl

提交回复
热议问题