Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

eclipse error: Selection must be WSDL

I am trying to create a simple web service using Apache CXF 2.6 runtime in Tomcat v7 using Java in Eclipse. I am following this tutorial http://www.youtube.com/watch?v=o2Vjs8ylmFM&feature=autoplay&list=ULtSVs_nwD1Ug&playnext=1

In this video i am following the wizard create a new XML based Web Service in Eclipse.

In the wizard Web Service type is Bottom up Java Bean Web Service. There are two sliders and i want it to indicate Test Service and Test Client to recreate the error i.e Selection must be WSDL which appears at the end of Test Client.

Please help me understand what am i missing ?

like image 386
Sanjay Rao Avatar asked Jun 03 '12 05:06

Sanjay Rao


1 Answers

hmm I got the same message with CXF 2.7.2

I went back and added annotations within the create a Service Endpoint Interface section of the wizard (I created and SEI) and it worked.

I think, because neither my implementation nor the service endpoint interface had annotations originally, the WSDL could not be generated and the wizard could not continue, generating a 'Selection must be WSDL' message instead...or at least that is my belief at the moment :)

like image 172
John Taylor Avatar answered Sep 28 '22 01:09

John Taylor