Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on PARAM names in WSDL file

 
Melinda Savoy
Ranch Hand
Posts: 387
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on my XP local box trying to test a web service tutorial and in the WSDL file I am showing param names that are not descriptive of what is needed to be passed in by those who will ultimately be trying to consume the web service. My understanding is that the names in my method should be denoted in the PART NAME under the message name and PARAMS below which are highlighted in RED. I forgot to mention that I am working in Eclipse and using Axis2.

I am new to web services and would really appreciate any help/direction. Thank you.

The WSDL file, http://localhost:8080/RequisitionWS/req?wsdl, looks like:



The interface is defined as follows:



The implementation bean looks like:



Thank you.
 
Melinda Savoy
Ranch Hand
Posts: 387
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem was resolved by adding in the interface annotation @WebParam to each property added into the @WebMethod in the web service.

Thanks anyway.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic