• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Servlet-Based Web Service Configuration Example from Ivan Kriz's Tutorial

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I configured the web service as explained in the example (Servlet-Based Web Service Configuration Example, Pg-277)

The webservices.xml has one setting as:
<wsdl-file>WEB-INF/wsdl/HelloWorldWSService.wsdl</wsdl-file>

After deploying the service to Glass Fish (v3.1) I get an error as:


The error is for obvoius reason that I don't have the WSDL yet at the location until I have deployed the service to GlassFish.

Is the WSDL needs to be coded first for the example to work ?
And if the WSDL needs to be coded first I am just wondering what is the whole point of defining a "webservices.xml" file.

Too confusing ...

Please clarify.
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
The WSDL file can be found on page 278.
In addition, on page 279 there is a motivation to why a webservices.xml file is needed:


When developing on GlassFish v2 and supplying a web.xml deployment descriptor but no webservices.xml deployment descriptor, a servlet-based web service will not be recognized as a web service. After having supplied a webservices.xml deployment descriptor, the web service will once again appear in GlassFish.


This may have changed in GlassFish v3.

By the way, my last name is Krizsan.
Best wishes!
 
Kumar Sonu
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it. Thanks again and sorry again for the name ..
 
I'm still in control here. LOOK at this tiny ad!
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic