Hi Deepal, I have upgraded to Axis 1.5.1 but I am not able to figure out how to resolve this error. Why am I getting a class cast exception? Should I be using a different type of client in Axis2 1.5.1? I have checked the documentation and they all indicate that what I am doing is correct.
Thanks, --kumar ________________________________ From: Deepal jayasinghe [mailto:deep...@gmail.com] Sent: Monday, October 04, 2010 5:17 PM To: java-user@axis.apache.org Subject: Re: class cast exception when creating ServiceClient That is correct, we have done a lot of code re-factoring after 1.3 release. So I suggest you to upgrade to new version. Deepal Hi all, I had this code working with Axis2 1.3.x but recently I moved to 1.5.1 and I get an error. The line is: ServiceClient Client = new ServiceClient(); The error I get is: org.apache.axis2.transport.tcp.TCPTransportSender cannot be cast to org.apache.axis2.transport.TransportSender. Any help is appreciated. Thanks, --kumar