users@glassfish.java.net

jax-rpc ctx.lookup returns jax-ws WSServiceDelegate not rpc.Service

From: <glassfish_at_javadesktop.org>
Date: Sun, 13 Apr 2008 20:18:30 PDT

Is this a bug?
Trying to run simple rpc-ws application client on J2EE server, so using the context lookup to get the jndi ref. This fails with a class cast error WSService to (rpc.Service OR MyHelloService). The problem is that the env seems to recognise the ws as a jax-ws, not jax-rpc, so the standard code is not transferable to the new jax-ws environment.
The WSService delegate object requires the ws classes to use annotations, rpc does not support this, and its config files spec rpc, so cant simply alter the ws to include in the @WebService annotations.

My impression is that the client if running on the glassfish should be jax-ws only?

Help with this please.
[Message sent by forum member 'apples32' (apples32)]

http://forums.java.net/jive/thread.jspa?messageID=268986