jQuery in Action, 3rd edition
The moose likes Web Services and the fly likes JAX-WS servlet problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAX-WS servlet problem" Watch "JAX-WS servlet problem" New topic

JAX-WS servlet problem

Kishor Joshi
Ranch Hand

Joined: Sep 24, 2012
Posts: 661
i recntly read this article http://netbeans.org/kb/docs/websvc/jax-ws.html
and try to run it on netbeans as stated but it show two problem
1).When it asks me to enter two number for addition purpose i enter these number but when i click on button add then it shows an
error that it does not add these number but it shows an error
2) At Some point it ask me to add code to place of main method but i dont find main method on it...

Help Please

Thanks in Advance
With Regards...
Saket Kumar Sinha
Ranch Hand

Joined: Aug 04, 2011
Posts: 32


I don't think when we make producer in WebService we will have a main method. Only a interface implementation is there. Like you made for addition of two numbers. The Consumer (Client) will have a main method which will use the service class to get the port. and then we can invoke using the endpoint url.
I am not sure why you are not able to test your webservice though
I agree. Here's the link: http://aspose.com/file-tools
subject: JAX-WS servlet problem
jQuery in Action, 3rd edition