my dog learned polymorphism*
The moose likes Web Services and the fly likes Webservice not getting the parameter, parameter is null Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Webservice not getting the parameter, parameter is null" Watch "Webservice not getting the parameter, parameter is null" New topic
Author

Webservice not getting the parameter, parameter is null

Sushma Sharma
Ranch Hand

Joined: Jun 02, 2005
Posts: 139
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Webservice not getting the parameter, parameter is null
 
Similar Threads
SOAP
SAAJ - Empty SOAP Response / Null Pointer Exception
webservice using servlet
SOAPMessage Frights
problem while calling document style web service