Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Which way to create a web service?

 
ahmet oguz
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, I want to create a web service with axis 1.2 But i have some questions.

must I write an interface and then use java2wsdl to create wsdl and then use wsdl2java for skeletons and then write implementation and deploy? Only one way is this?
or can i write a implementation class directly and deploy web service?
Thanks
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you need to go through this document.
For deploying a java class directly as a webservice, see the JWS section.
 
ahmet oguz
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know this document an i read all parts of this document. My question is
if i write a class and then write service xml in serverconfig.wsdd and deploy my own application everything is ok. I can not use jws format.
But sometimes firstofall write interface then create wsdl and then create serverside skeletons and write implementation and then write xml in serverconfig.wsdd. what is the difference between these? Are there any advantages or disadvantages between these paths?(Not jws format)
 
NarendraBabu Bandaru
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suggest the best way is going - WSDL2JAVA ..

First create the requirements into a XML Schema. With which you can easily create the WSDL and then with the help of wsdl2java tool, generate the required java files.

When you want to convert the existing functionality to a webservice, at that moment going JAVA2WSDL is good.

But if you are going for creating a new webservice, it is always good to go with WSDL First.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic