• Post Reply Bookmark Topic Watch Topic
  • New Topic

WebService annotation name value not updating WSDL

 
Kenneth Inman
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following code, using Eclipse; Tomcat as my container, just doing a quick test of Web Services. I test my Web Service straight through eclipse, but when I try to add values to the annotations in my code, I can't seem to get them to reflect in my WSDL:



Here is a snippted of the WSDL (I did a search for the name and couldn't find it):



Am I missing something on how to update the WSDL? I've tried deleting and redeploying, refreshing, everything I can think of for right now and I still can't get it to reflect the port name. The code works fine and returns the message, just can't get the annotation to work.

 
Radhakrishna Sharma Gorenta
Ranch Hand
Posts: 63
Google App Engine Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are following code first approach here, this is not the right approach to write a Web service in Java. Follo the Contract first approach. You first write your contract(WSDL) with whatever types, operations, bindings you want to use.
Then trygenerate the Java code from that, using WSIMPORT tool.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!