NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

JAX RPC Web Service - Error in client application while invoking the method

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
Venkatesh.G



Joined: 18 Jan 2011
Posts: 7

PostPosted: Fri Jan 21, 2011 1:46 pm    Post subject: JAX RPC Web Service - Error in client application while invoking the method Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo