This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Web Services and the fly likes calling jaxws- service/server from jax-rpc client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "calling jaxws- service/server from jax-rpc client" Watch "calling jaxws- service/server from jax-rpc client" New topic
Author

calling jaxws- service/server from jax-rpc client

venkat bagavathi subramanian
Greenhorn

Joined: Dec 21, 2003
Posts: 19
Hi,
i am trying to call a service i have published in jax-ws compliant server(sun application server) from a client built on jax-rpc (jax-rpc client calling jax-ws server/service).
i tried building the jax-rpc client from the wsdl exposed by jax-ws and am running into problems.i am unable to compile them and is throwing errors(given below).its a simple hello world program.
help sought
venkatB
---------------------------------------------

D:\>ant
Buildfile: build.xml

get-artifacts-windows:
[exec] D:\hello\HelloService\HelloService.java:11: cannot find symbol
[exec] symbol : class Hello
[exec] location: interface HelloService.HelloService
[exec] public HelloService.Hello getHelloPort() throws ServiceException;
[exec] ^
[exec] D:\hello\HelloService\HelloService_Impl.java:55: cannot find symbol
[exec] symbol : class Hello
[exec] location: interface HelloService.HelloService
[exec] public HelloService.Hello getHelloPort() {
[exec] ^
[exec] D:\hello\HelloService\Hello_Stub.java:33: cannot find symbol
[exec] symbol : class Hello
[exec] location: interface HelloService.HelloService
[exec] implements HelloService.Hello {
[exec] ^
[exec] D:\hello\HelloService\HelloService_Impl.java:22: cannot find symbol
[exec] symbol : class Hello
[exec] location: interface HelloService.HelloService
[exec] private static final Class hello_PortClass = HelloService.Hello.class;
[exec] ^
[exec] D:\hello\HelloService\HelloService_Impl.java:59: cannot find symbol
[exec] symbol : class Hello_Stub
[exec] location: interface HelloService.HelloService
[exec] HelloService.Hello_Stub stub = new HelloService.Hello_Stub(handlerChain);
[exec] ^
[exec] D:\hello\HelloService\HelloService_Impl.java:59: cannot find symbol
[exec] symbol : class Hello_Stub
[exec] location: interface HelloService.HelloService
[exec] HelloService.Hello_Stub stub = new HelloService.Hello_Stub(handlerChain);
[exec] ^
[exec] D:\hello\HelloService\GetHello_LiteralSerializer.java:40: cannot find symbol
[exec] symbol : class GetHello
[exec] location: interface HelloService.HelloService
[exec] HelloService.GetHello instance = new HelloService.GetHello();
[exec] ^
[exec] D:\hello\HelloService\GetHello_LiteralSerializer.java:40: cannot find symbol
[exec] symbol : class GetHello
[exec] location: interface HelloService.HelloService
[exec] HelloService.GetHello instance = new HelloService.GetHello();
[exec] ^
[exec] D:\hello\HelloService\GetHello_LiteralSerializer.java:64: cannot find symbol
[exec] symbol : class GetHello
[exec] location: interface HelloService.HelloService
[exec] HelloService.GetHello instance = (HelloService.GetHello)obj;
[exec] ^
[exec] D:\hello\HelloService\GetHello_LiteralSerializer.java:64: cannot find symbol
[exec] symbol : class GetHello
[exec] location: interface HelloService.HelloService
[exec] HelloService.GetHello instance = (HelloService.GetHello)obj;
[exec] ^
[exec] D:\hello\HelloService\GetHello_LiteralSerializer.java:68: cannot find symbol
[exec] symbol : class GetHello
[exec] location: interface HelloService.HelloService
[exec] HelloService.GetHello instance = (HelloService.GetHello)obj;
[exec] ^
[exec] D:\hello\HelloService\GetHello_LiteralSerializer.java:68: cannot find symbol
[exec] symbol : class GetHello
[exec] location: interface HelloService.HelloService
[exec] HelloService.GetHello instance = (HelloService.GetHello)obj;
[exec] ^
[exec] D:\hello\HelloService\GetHelloResponse_LiteralSerializer.java:40: cannot find symbol
[exec] symbol : class GetHelloResponse
[exec] location: interface HelloService.HelloService
[exec] HelloService.GetHelloResponse instance = new HelloService.GetHelloResponse();
[exec] ^
[exec] D:\hello\HelloService\GetHelloResponse_LiteralSerializer.java:40: cannot find symbol
[exec] symbol : class GetHelloResponse
[exec] location: interface HelloService.HelloService
[exec] HelloService.GetHelloResponse instance = new HelloService.GetHelloResponse();
[exec] ^
[exec] D:\hello\HelloService\GetHelloResponse_LiteralSerializer.java:64: cannot find symbol
[exec] symbol : class GetHelloResponse
[exec] location: interface HelloService.HelloService
[exec] HelloService.GetHelloResponse instance = (HelloService.GetHelloResponse)obj;
[exec] ^
[exec] D:\hello\HelloService\GetHelloResponse_LiteralSerializer.java:64: cannot find symbol
[exec] symbol : class GetHelloResponse
[exec] location: interface HelloService.HelloService
[exec] HelloService.GetHelloResponse instance = (HelloService.GetHelloResponse)obj;
[exec] ^
[exec] D:\hello\HelloService\GetHelloResponse_LiteralSerializer.java:68: cannot find symbol
[exec] symbol : class GetHelloResponse
[exec] location: interface HelloService.HelloService
[exec] HelloService.GetHelloResponse instance = (HelloService.GetHelloResponse)obj;
[exec] ^
[exec] D:\hello\HelloService\GetHelloResponse_LiteralSerializer.java:68: cannot find symbol
[exec] symbol : class GetHelloResponse
[exec] location: interface HelloService.HelloService
[exec] HelloService.GetHelloResponse instance = (HelloService.GetHelloResponse)obj;
[exec] ^
[exec] D:\hello\HelloService\Hello_Stub.java:59: cannot find symbol
[exec] symbol : class GetHello
[exec] location: interface HelloService.HelloService
[exec] HelloService.GetHello _myGetHello = new HelloService.GetHello();
[exec] ^
[exec] D:\hello\HelloService\Hello_Stub.java:59: cannot find symbol
[exec] symbol : class GetHello
[exec] location: interface HelloService.HelloService
[exec] HelloService.GetHello _myGetHello = new HelloService.GetHello();
[exec] ^
[exec] D:\hello\HelloService\Hello_Stub.java:71: cannot find symbol
[exec] symbol : class GetHelloResponse
[exec] location: interface HelloService.HelloService
[exec] HelloService.GetHelloResponse _result = null;
[exec] ^
[exec] D:\hello\HelloService\Hello_Stub.java:74: cannot find symbol
[exec] symbol : class GetHelloResponse
[exec] location: interface HelloService.HelloService
[exec] _result = (HelloService.GetHelloResponse)((SOAPDeserializationState) _responseObj).getInstance();
[exec] ^
[exec] D:\hello\HelloService\Hello_Stub.java:76: cannot find symbol
[exec] symbol : class GetHelloResponse
[exec] location: interface HelloService.HelloService
[exec] _result = (HelloService.GetHelloResponse)_responseObj;
[exec] ^
[exec] D:\hello\HelloService\Hello_Stub.java:163: cannot find symbol
[exec] symbol : class GetHelloResponse
[exec] location: interface HelloService.HelloService
[exec] ns1_myGetHelloResponse_LiteralSerializer = (CombinedSerializer)registry.getSerializer("", HelloService.GetHelloResponse.cl
ass, ns1_getHelloResponse_TYPE_QNAME);
[exec] ^
[exec] D:\hello\HelloService\Hello_Stub.java:164: cannot find symbol
[exec] symbol : class GetHello
[exec] location: interface HelloService.HelloService
[exec] ns1_myGetHello_LiteralSerializer = (CombinedSerializer)registry.getSerializer("", HelloService.GetHello.class, ns1_getHell
o_TYPE_QNAME);
[exec] ^
[exec] D:\hello\HelloService\HelloService_SerializerRegistry.java:31: cannot find symbol
[exec] symbol : class GetHello_LiteralSerializer
[exec] location: interface HelloService.HelloService
[exec] CombinedSerializer serializer = new HelloService.GetHello_LiteralSerializer(type, "", DONT_ENCODE_TYPE);
[exec] ^
[exec] D:\hello\HelloService\HelloService_SerializerRegistry.java:32: cannot find symbol
[exec] symbol : class GetHello
[exec] location: interface HelloService.HelloService
[exec] registerSerializer(mapping2,HelloService.GetHello.class, type, serializer);
[exec] ^
[exec] D:\hello\HelloService\HelloService_SerializerRegistry.java:36: cannot find symbol
[exec] symbol : class GetHelloResponse_LiteralSerializer
[exec] location: interface HelloService.HelloService
[exec] CombinedSerializer serializer = new HelloService.GetHelloResponse_LiteralSerializer(type, "", DONT_ENCODE_TYPE);
[exec] ^
[exec] D:\hello\HelloService\HelloService_SerializerRegistry.java:37: cannot find symbol
[exec] symbol : class GetHelloResponse
[exec] location: interface HelloService.HelloService
[exec] registerSerializer(mapping2,HelloService.GetHelloResponse.class, type, serializer);
[exec] ^
[exec] 29 errors
[exec] error: compilation failed, errors should have been reported

compile-client:
[javac] Compiling 9 source files to D:\hello\HelloService
[javac] D:\hello\HelloService\HelloService.java:11: cannot find symbol
[javac] symbol : class Hello
[javac] location: interface HelloService.HelloService
[javac] public HelloService.Hello getHelloPort() throws ServiceException;
[javac] ^
[javac] D:\hello\HelloService\HelloService_Impl.java:55: cannot find symbol
[javac] symbol : class Hello
[javac] location: interface HelloService.HelloService
[javac] public HelloService.Hello getHelloPort() {
[javac] ^
[javac] D:\hello\HelloService\Hello_Stub.java:33: cannot find symbol
[javac] symbol : class Hello
[javac] location: interface HelloService.HelloService
[javac] implements HelloService.Hello {
[javac] ^
[javac] D:\hello\HelloService\GetHelloResponse_LiteralSerializer.java:40: cannot find symbol
[javac] symbol : class GetHelloResponse
[javac] location: interface HelloService.HelloService
[javac] HelloService.GetHelloResponse instance = new HelloService.GetHelloResponse();
[javac] ^
[javac] D:\hello\HelloService\GetHelloResponse_LiteralSerializer.java:40: cannot find symbol
[javac] symbol : class GetHelloResponse
[javac] location: interface HelloService.HelloService
[javac] HelloService.GetHelloResponse instance = new HelloService.GetHelloResponse();
[javac] ^
[javac] D:\hello\HelloService\GetHelloResponse_LiteralSerializer.java:64: cannot find symbol
[javac] symbol : class GetHelloResponse
[javac] location: interface HelloService.HelloService
[javac] HelloService.GetHelloResponse instance = (HelloService.GetHelloResponse)obj;
[javac] ^
[javac] D:\hello\HelloService\GetHelloResponse_LiteralSerializer.java:64: cannot find symbol
[javac] symbol : class GetHelloResponse
[javac] location: interface HelloService.HelloService
[javac] HelloService.GetHelloResponse instance = (HelloService.GetHelloResponse)obj;
[javac] ^
[javac] D:\hello\HelloService\GetHelloResponse_LiteralSerializer.java:68: cannot find symbol
[javac] symbol : class GetHelloResponse
[javac] location: interface HelloService.HelloService
[javac] HelloService.GetHelloResponse instance = (HelloService.GetHelloResponse)obj;
[javac] ^
[javac] D:\hello\HelloService\GetHelloResponse_LiteralSerializer.java:68: cannot find symbol
[javac] symbol : class GetHelloResponse
[javac] location: interface HelloService.HelloService
[javac] HelloService.GetHelloResponse instance = (HelloService.GetHelloResponse)obj;
[javac] ^
[javac] D:\hello\HelloService\GetHello_LiteralSerializer.java:40: cannot find symbol
[javac] symbol : class GetHello
[javac] location: interface HelloService.HelloService
[javac] HelloService.GetHello instance = new HelloService.GetHello();
[javac] ^
[javac] D:\hello\HelloService\GetHello_LiteralSerializer.java:40: cannot find symbol
[javac] symbol : class GetHello
[javac] location: interface HelloService.HelloService
[javac] HelloService.GetHello instance = new HelloService.GetHello();
[javac] ^
[javac] D:\hello\HelloService\GetHello_LiteralSerializer.java:64: cannot find symbol
[javac] symbol : class GetHello
[javac] location: interface HelloService.HelloService
[javac] HelloService.GetHello instance = (HelloService.GetHello)obj;
[javac] ^
[javac] D:\hello\HelloService\GetHello_LiteralSerializer.java:64: cannot find symbol
[javac] symbol : class GetHello
[javac] location: interface HelloService.HelloService
[javac] HelloService.GetHello instance = (HelloService.GetHello)obj;
[javac] ^
[javac] D:\hello\HelloService\GetHello_LiteralSerializer.java:68: cannot find symbol
[javac] symbol : class GetHello
[javac] location: interface HelloService.HelloService
[javac] HelloService.GetHello instance = (HelloService.GetHello)obj;
[javac] ^
[javac] D:\hello\HelloService\GetHello_LiteralSerializer.java:68: cannot find symbol
[javac] symbol : class GetHello
[javac] location: interface HelloService.HelloService
[javac] HelloService.GetHello instance = (HelloService.GetHello)obj;
[javac] ^
[javac] D:\hello\HelloService\HelloService_Impl.java:22: cannot find symbol
[javac] symbol : class Hello
[javac] location: interface HelloService.HelloService
[javac] private static final Class hello_PortClass = HelloService.Hello.class;
[javac] ^
[javac] D:\hello\HelloService\HelloService_Impl.java:59: cannot find symbol
[javac] symbol : class Hello_Stub
[javac] location: interface HelloService.HelloService
[javac] HelloService.Hello_Stub stub = new HelloService.Hello_Stub(handlerChain);
[javac] ^
[javac] D:\hello\HelloService\HelloService_Impl.java:59: cannot find symbol
[javac] symbol : class Hello_Stub
[javac] location: interface HelloService.HelloService
[javac] HelloService.Hello_Stub stub = new HelloService.Hello_Stub(handlerChain);
[javac] ^
[javac] D:\hello\HelloService\HelloService_SerializerRegistry.java:31: cannot find symbol
[javac] symbol : class GetHello_LiteralSerializer
[javac] location: interface HelloService.HelloService
[javac] CombinedSerializer serializer = new HelloService.GetHello_LiteralSerializer(type, "", DONT_ENCODE_TYPE);
[javac] ^
[javac] D:\hello\HelloService\HelloService_SerializerRegistry.java:32: cannot find symbol
[javac] symbol : class GetHello
[javac] location: interface HelloService.HelloService
[javac] registerSerializer(mapping2,HelloService.GetHello.class, type, serializer);
[javac] ^
[javac] D:\hello\HelloService\HelloService_SerializerRegistry.java:36: cannot find symbol
[javac] symbol : class GetHelloResponse_LiteralSerializer
[javac] location: interface HelloService.HelloService
[javac] CombinedSerializer serializer = new HelloService.GetHelloResponse_LiteralSerializer(type, "", DONT_ENCODE_TYPE);
[javac] ^
[javac] D:\hello\HelloService\HelloService_SerializerRegistry.java:37: cannot find symbol
[javac] symbol : class GetHelloResponse
[javac] location: interface HelloService.HelloService
[javac] registerSerializer(mapping2,HelloService.GetHelloResponse.class, type, serializer);
[javac] ^
[javac] D:\hello\HelloService\Hello_Stub.java:59: cannot find symbol
[javac] symbol : class GetHello
[javac] location: interface HelloService.HelloService
[javac] HelloService.GetHello _myGetHello = new HelloService.GetHello();
[javac] ^
[javac] D:\hello\HelloService\Hello_Stub.java:59: cannot find symbol
[javac] symbol : class GetHello
[javac] location: interface HelloService.HelloService
[javac] HelloService.GetHello _myGetHello = new HelloService.GetHello();
[javac] ^
[javac] D:\hello\HelloService\Hello_Stub.java:71: cannot find symbol
[javac] symbol : class GetHelloResponse
[javac] location: interface HelloService.HelloService
[javac] HelloService.GetHelloResponse _result = null;
[javac] ^
[javac] D:\hello\HelloService\Hello_Stub.java:74: cannot find symbol
[javac] symbol : class GetHelloResponse
[javac] location: interface HelloService.HelloService
[javac] _result = (HelloService.GetHelloResponse)((SOAPDeserializationState) _responseObj).getInstance();
[javac] ^
[javac] D:\hello\HelloService\Hello_Stub.java:76: cannot find symbol
[javac] symbol : class GetHelloResponse
[javac] location: interface HelloService.HelloService
[javac] _result = (HelloService.GetHelloResponse)_responseObj;
[javac] ^
[javac] D:\hello\HelloService\Hello_Stub.java:163: cannot find symbol
[javac] symbol : class GetHelloResponse
[javac] location: interface HelloService.HelloService
[javac] ns1_myGetHelloResponse_LiteralSerializer = (CombinedSerializer)registry.getSerializer("", HelloService.GetHelloResponse.cl
ass, ns1_getHelloResponse_TYPE_QNAME);
[javac] ^
[javac] D:\hello\HelloService\Hello_Stub.java:164: cannot find symbol
[javac] symbol : class GetHello
[javac] location: interface HelloService.HelloService
[javac] ns1_myGetHello_LiteralSerializer = (CombinedSerializer)registry.getSerializer("", HelloService.GetHello.class, ns1_getHell
o_TYPE_QNAME);
[javac] ^
[javac] 29 errors

BUILD FAILED
D:\build.xml:52: Compile failed; see the compiler error output for details.

Total time: 5 seconds
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: calling jaxws- service/server from jax-rpc client
 
Similar Threads
RefList help
Setting jars in class path
Sun webservices tutorial
@WebMethod not found
Modifying JBOSS twiddle code