Eclipse error: selection must be WSDL

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

In this video, I follow the wizard creating a new XML-based web service in Eclipse.

In the web service type of the wizard, there is the bottom page of the Java Bean web service. There are two sliders, and I want it to specify Test Service and Test Client to recreate the error. I. The choice should be the WSDL that appears at the end of the test client.

Please help me understand what I am missing?

+6
source share
8 answers

hmm I got the same message with CXF 2.7.2

I came back and added annotations as part of creating the wizard service endpoint interface (I also created SEI), and it worked.

I think because neither my implementation nor the service endpoint interface had annotations initially, WSDL could not be generated, and the wizard could not continue, instead it generated the message “The choice should be WSDL” ... or at least this is my faith at the moment :)

+3
source

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 it is not clear why it does not work with version 2.6.1.

0
source

I have the same error with CXF 2.7.1. This error occurred when I received 2 services in WSDL and try to create a Web client from it. I do not know why it detects a strange error, because I only generate client stubs from WSDL. But when I create using One Service in WSDL, I did not receive any errors. Do you know how to handle WSDL when it has 2 services inside? How to create a client from this WSDL.

0
source

I had the same error and I got this thing by strictly clicking on the java class and selecting new-> web service instead of selecting the java resource package

0
source

In the web service type of the wizard, there is the bottom page of the Java Bean web service. There are two sliders, and I want it to specify Test Service and Test Client to recreate the error. I. The choice should be the WSDL that appears at the end of the test client.

Under "Bottom up Java Bean Web Service", you specified a class. Inspect the methods of this class. Methods cannot have unknown (for the web service client) return values.

0
source

I had the same error, but I decided. My business ... Because the class is not created. First check your compilation class, build path> output folder. if the class is not found, then “Build Path”> “Order and Export”: all checks after “Clear the project” and check the compilation class. Sorry I'm poor English, but let me know my experience. Good luck

0
source

Actually, it just helped me to change the version of CXF. I recommend doing the same thanks

0
source

I am new to Java WebService and also encountered a similar issue following the tutorial

I downgraded the CXF version from 3.1.1 to 2.4.2, cleaned up the old dependencies and rebuilt the project. And he began to work for me.

PS - I am using JDK 1.7.

-1
source

Source: https://habr.com/ru/post/917278/


All Articles