• Post Reply Bookmark Topic Watch Topic
  • New Topic

my wsdl doesn;t have message  RSS feed

 
David Spades
Ranch Hand
Posts: 348
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


and this is my web service:


why doesn't the wsdl contain message element?
thanks
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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 !!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!