This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Webservice not getting the parameter, parameter is null

Sushma Sharma
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am wrote my first WebService. Server is jboss 4.2.2. I wrote a bean and registered as a servlet in my web.xml and deployed it to the server.
it deployed fine and generated the wsdl. Now, I am trying to test it with a client. Client is able to invoke the web service,
but it does not get the parameter I am passing. It always prints the parameter as null. Can anyone point out my mistake?

Thanks for the help in advance,

Here is code for my WebService class and client:

The expected output was "received input. success Apples", but it was returns "received input. success null", what am I doing wrong here?

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic