You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "McManaman, Chris" <Ch...@usa.apachecorp.com> on 2003/09/24 20:47:49 UTC

incompatible types; found: javax.xml.rpc.Service, required: org.apache.axis.client.Service

 
The following code snippet is giving me the following error:
 
                                    org.apache.axis.client.Service
service =
org.apache.axis.client.ServiceFactory.newInstance().createService(null);
                                    org.apache.axis.client.Call call2 =
service.createCall();
 
Error(96,87): incompatible types; found: javax.xml.rpc.Service,
required: org.apache.axis.client.Service
Error(97,58): incompatible types; found: javax.xml.rpc.Call, required:
org.apache.axis.client.Call
 
 
What am I missing?
 
Thanks
 
Chris
 

Re: incompatible types; found: javax.xml.rpc.Service, required: org.apache.axis.client.Service

Posted by "Jeyakumaran.C" <jk...@vijayaba.cse.mrt.ac.lk>.
hi chris,
in your code snippet ,createService() and createCall() methods return javax.xml.rpc.Service and javax.xml.rpc.Call respectively.
You better try to cast the return objects in to org.apache.axis.client.Service and org.apache.axis.client.Call.
Now it should work.

regards,
Jeyakumaran

  ----- Original Message ----- 
  From: McManaman, Chris 
  To: axis-user@ws.apache.org 
  Sent: Thursday, September 25, 2003 12:47 AM
  Subject: incompatible types; found: javax.xml.rpc.Service, required: org.apache.axis.client.Service


   

  The following code snippet is giving me the following error:

   

                                      org.apache.axis.client.Service service = org.apache.axis.client.ServiceFactory.newInstance().createService(null);

                                      org.apache.axis.client.Call call2 = service.createCall();

   

  Error(96,87): incompatible types; found: javax.xml.rpc.Service, required: org.apache.axis.client.Service

  Error(97,58): incompatible types; found: javax.xml.rpc.Call, required: org.apache.axis.client.Call

   

   

  What am I missing?

   

  Thanks

   

  Chris