• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SOAP Webservice Fundamental Question

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I know how to write a webservice but I need some clarity on how it works.

As per my understanding, whenever we deploy a webservice using java annotations , the wsdl will be automatically generated by the application server during deployment.
This is the wsdl we ll get when we hit the webservice URL. But my teammate told me that when we deploy a webservice in to the server, the development team will put the wsdl file (Contract first) into the src/main/resources location and server will use that wsdl file to deploy the webservice in the server and also this is the wsdl url we ll get when we hit the webserivce url.

I dont believe this, I think even if we put the WSDL file as part of java project workspace, the application server will automatically generate a new wsdl using the annotations which we provided in the java class and that automatically created wsdl will be returned when we hit the webservice http URL . Please advise whether my understanding is correct or my teammate's. Thanks !!!
 
Bartender
Posts: 667
14
TypeScript Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, couldn't you test by not putting the wsdl file there and see if it's automatically generated?
 
Lawliet Nate
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Al Hobbs wrote:Well, couldn't you test by not putting the wsdl file there and see if it's automatically generated?



Hi Hobbs,

Thanks for your reply !!!
I know for a fact that WSDL will get automatically generated if we annotate the class as webservice.
I have did this many times before. But my teammate said there is a maven archetype available where we will put the wsdl in the resource directory and it will be deployed as part of service deployment and this is the file which will get returned when we hit the service url.

I don't know much about the archetype details to test and see if that is the case. That's why I wanted to get a clarity on how wsdl works in a webservice .



 
Saloon Keeper
Posts: 7585
176
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think that depends on which SOAP stack you're using. Some may create an actual file, and some (like Axis-2) serve it at runtime if that option is turned on.
 
Lawliet Nate
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Moores wrote:I think that depends on which SOAP stack you're using. Some may create an actual file, and some (like Axis-2) serve it at runtime if that option is turned on.



Hi Tim,

Thanks for the info
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic