• 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

Webservice not getting the parameter, parameter is null

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

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,
Sushma

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?

Sushma
 
girl power ... turns out to be about a hundred watts. But they seriuosly don't like being connected to the grid. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic