eclipse error: Selection must be WSDL
Asked Answered
S

9

7

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 ?

Sarchet answered 3/6, 2012 at 5:41 Comment(1)
I found this link but couldn't understand much eclipse.org/webtools/jst/components/ws/1.0/news/…Sarchet
S
2

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 :)

Spotweld answered 19/1, 2013 at 0:3 Comment(1)
which annotations did you add?Kidd
M
0

I was getting the same error with CXF version 2.6.1. But I tried with CXF version 2.3.11. Now it works :) but not clear why it doesn't work with version 2.6.1.

Millesimal answered 7/6, 2012 at 5:33 Comment(2)
None of the mirror to download this version work anymore, so probably one of the answer below is a better solutionKidd
@Omkar : I have the same problem and i am not able to create a web service, referring to this link, the version 2.3.11 is not available, how can i get it ?Vulgarity
I
0

I have got the same Error with CXF 2.7.1. This Error happened When I got 2 Services in WSDL and try to create Web Service Client out of it. I don't know why its showing up weird error because I am generating Client stubs from WSDL only. But when I create with One Service in WSDL, I didn't get any error. Do you know how to handle WSDL when its got 2 Services inside? How to generate Client out of that WSDL.

Inappropriate answered 22/1, 2013 at 20:21 Comment(0)
B
0

I was having the same error and got the thing work by rigth-clicking the java class and selecting new->web service, instead of selecting the java resources package

Bituminize answered 22/10, 2013 at 21:34 Comment(1)
didn't help in my case, I have apache cxf 3.0.1Kidd
S
0

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.

Beneath the "Bottom up Java Bean Web Service" you specified a class. Inspect this class' methods. The methods cannot have an unknown (to the web service client's) return values.

Stockpile answered 10/2, 2014 at 17:23 Comment(0)
T
0

I was the same error But I solved it. My case is ... Because class not created. First check your compile class, Build path > output folder. if class not found then Build Path > Order and Export : all check after Project Clean and check compile class. Sorry I'm poor English But Let you know my experience. Good luck !

Terle answered 15/1, 2015 at 7:33 Comment(0)
R
0

Actually just changing the CXF version helped me. I Recommend to do the same Thanks

Rist answered 3/12, 2016 at 13:15 Comment(0)
A
0

None of the answer work for me as well. So I observed that launching the server and client together showed this error for the client. When I tried starting the only server keeping client off I am able to do that without any issues. Only thing is that I don't get UI to test the service, but I can test it using soap UI.

Alvie answered 1/12, 2022 at 13:14 Comment(0)
L
-1

I am newbie in Java WebService and was also facing the similar issue while following a tutorial

I downgraded the CXF version from 3.1.1 to 2.4.2, cleaned-out the old dependencies and rebuilt the project. And it started working for me.

P.S. - I am using JDK 1.7.

Lux answered 6/8, 2015 at 4:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.