• Post Reply Bookmark Topic Watch Topic
  • New Topic

SELECTION MUST BE WSDL while creating SOAP WEBSERVICE in eclipse  RSS feed

 
Vivek Pinto
Greenhorn
Posts: 16
Hibernate Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am trying to build a webservice using eclipse IDE . .Java files working fine .But while generating the webservice it says "Selection must be wsdl".And i observed that some times it throws that error and some times does not.Some times when i create the entire project as fresh project it wont throw that error.
I am using Eclipse IDE,CXF runtime 2.7.1 version and trying to build a SOAP web Service.

Can anybody help me out so as to understand what is causing this freaking behavior.

Thanks in advance.
 
Sujeeth Pakala
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vivek

Your issue is not clearly described ( sorry for that ;-) ). Answer below questions :

1.
Java files working fine
-> Does this mean you have some logic and want to expose as webservice ?
2.
generating the webservice
-> Are you generating webervice skeleton from WSDL ?

BTW, there are 2 approaches to build webservice.
1. Contract first (prefered way): You have WSDL and aim to generate webservice skeleton. This is doable in eclipse. Right click on wsdl -> Webservices ->generate webservice skeleton.
2. Contract last: You have solution logic and aim to expose as webservice. This is doable in eclise too. Tight click on the java implementatin class- > webservices -> create webservice.

Mkyong created nice JAX-WS tutorials. (Thanks to him ;-)). I recomend to go through them, which will give you good idea .

Hope this helps.
 
Vivek Pinto
Greenhorn
Posts: 16
Hibernate Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sujeeth Pakala wrote:Vivek

Your issue is not clearly described ( sorry for that ;-) ). Answer below questions :

1.
Java files working fine
-> Does this mean you have some logic and want to expose as webservice ?
2.
generating the webservice
-> Are you generating webervice skeleton from WSDL ?

BTW, there are 2 approaches to build webservice.
1. Contract first (prefered way): You have WSDL and aim to generate webservice skeleton. This is doable in eclipse. Right click on wsdl -> Webservices ->generate webservice skeleton.
2. Contract last: You have solution logic and aim to expose as webservice. This is doable in eclise too. Tight click on the java implementatin class- > webservices -> create webservice.

Mkyong created nice JAX-WS tutorials. (Thanks to him ;-)). I recomend to go through them, which will give you good idea .

Hope this helps.


Hi Sujeeth,

I have some logic and i want to expose as webservice(have done it using the right click ->webservice->create webservice).
"But this selection Must be a WSDL " is error is something for which i am not able to find out the reason.If i close eclipse and build project again fresh then WSDL gets generated.And it doesnt come always!!
Hope you got the problem.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!