How to create Stub Java Class from Wsdl using wsimport:-
1.wsimport tool exists in jdk\bin folder
eg:-C:\Program Files (x86)\IBM\SDP\jdk\bin
2.Use the following command
a)If wsdl is on internet
C:\Program Files (x86)\IBM\SDP\jdk\bin>wsimport -keep -verbose http://compA.com/ws/server?wsdl
b)a)If wsdl is in Your Computer
C:\Program Files (x86)\IBM\SDP\jdk\bin>wsimport -keep -verbose C:\Users\kgaurav2\Desktop\oneServiceV1_0.wsdl
3.Stub Classes get created in the following path:
C:\Program Files (x86)\IBM\SDP\jdk\bin
1.wsimport tool exists in jdk\bin folder
eg:-C:\Program Files (x86)\IBM\SDP\jdk\bin
2.Use the following command
a)If wsdl is on internet
C:\Program Files (x86)\IBM\SDP\jdk\bin>wsimport -keep -verbose http://compA.com/ws/server?wsdl
b)a)If wsdl is in Your Computer
C:\Program Files (x86)\IBM\SDP\jdk\bin>wsimport -keep -verbose C:\Users\kgaurav2\Desktop\oneServiceV1_0.wsdl
3.Stub Classes get created in the following path:
C:\Program Files (x86)\IBM\SDP\jdk\bin