• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Which way to create a web service?

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 1638
IntelliJ IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic