I added code tags to your client code listing, but the line numbers does not correspond to those in the listing.
Could you re-submit the second listing using code tags and indicate at which row the exception occurs?
I changed my original posting, the exception is at the bold line.
Joined: Oct 04, 2006
I suspect the error is not directly related to the web service client. It looks like your application is using some JNDI property that is not correctly configured, or your application is not running in the correct environment (perhaps an environment that does not support JNDI).
In what environment is your web service and your web service client running? Are they deployed on different machines?
subject: javax.naming.NoInitialContextException: Need to specify class name in environment or system property