• 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

my wsdl doesn;t have message

 
Ranch Hand
Posts: 348
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


and this is my web service:


why doesn't the wsdl contain message element?
thanks
 
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your wsdl contains message elements.
Did you noticed that it also do not contain portType element ? But still your WSDL contains portType reference in binding element
<binding name="EmployeeServiceImplPortBinding" type="ns1:EmployeeService">

Now where all these elements ?

It is here <import namespace="http://service.training.com/" location="http://localhost:7777/employee?wsdl=1" />
Open this URL http://localhost:7777/employee?wsdl=1 in browser and you will find message and (porttype ) elements.

Now point to think about - why JAX WS has seperate Web Service details in two WSDL files ?
Reason - because you have defined your Service Endpoint Interface [SEI] class EmployeeService and Service Implementation Bean[SIB] class EmployeeServiceImpl in different packages.
Therefore JAX-WS has seperated WSDL details for EmployeeService and EmployeeServiceImpl as they now should be defined in different namespcace.

if you want message, portype and binding element all in one WSDL , then , define explicit target namespace for SEI and SIB.

Happy learning !!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic