NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Venkatesh.G
Joined: 18 Jan 2011 Posts: 7
|
Posted: Fri Jan 21, 2011 1:46 pm Post subject: JAX RPC Web Service - Error in client application while invoking the method |
|
|
Hi,
I have created a JAX-RPC Web Serive using NetBeans IDE 6.8 and GlassFish Server v2.1. The web Service has been created, build and deployed successfully on the server.
The Web client application got created and build successfully. But during the run time, while invoking the method, the following error apears.
java.lang.IllegalArgumentException: object is not an instance of declaring class
The partly code of my client program is given below:
Context ic = new InitialContext();
GreetService gws = (GreetService) ic.lookup("java:comp/env/service/GreetService");
GreetServiceSEI gport = (GreetServiceSEI) gws.getGreetServiceSEIPort();
((Stub) gport)._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY,"http://localhost:8080/GreetServiceApp/GreetService");
String msg= gport.greet(request.getParameter("name"));
out.println(msg);
My webservice accepts a String and returns a String.
Looking for a speedy solution.
Regards,
Venkatesh G |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|