users@jax-rpc.java.net

Re: Dynamic Invocation Interface

From: Arun Gupta <arun.gupta_at_Sun.COM>
Date: Fri, 01 Mar 2002 09:22:02 -0800

Hi Su,

ServiceFactory is introduced in 0.6 version of the spec. However the
latest implementation on java.sun.com is compatible with 0.5 version of
the spec. Please refer to
http://java.sun.com/webservices/docs/ea1/tutorial/doc/JAXRPC4.html#68320
for a listing of a DII client compatible with the latest available
implementation.

The next release of JWSDP will have ServiceFactory available.

Thanks for your interest in JAX-RPC.

Regards,
-Arun

Su Zhang wrote:
>
> Hi,
>
> I'm trying to invoke the RPC with DII. The source code looks like:
> ...
> QName servicePort = new QName( "http://vote.org/wsdl", "VoteIF" );
>
> QName serviceName = new QName( "VoteService" );
>
> Service service = ServiceFactory.newInstance().createService( serviceName );
>
> // endpoint = "http://localhost:8080/jaxrpc-vote/vote/endpoint/VoteIF
> Call call = service.createCall( servicePort, "addVote" );
> call.setTargetEndpointAddress( endpoint );
> ...
>
> When I run it, I got the following error:
> Error occurred: service: QName(VoteService) does not contain port: QName(http://vote.org/wsdl, VoteIF)
>
> Could you tell me what may cause this error?
>
> I check the following URL, and the service is deployed correctly.
> http://localhost:8080/jaxrpc-vote/vote/endpoint
>
> A Web Service is installed at this URL.
>
> It supports the following ports: "VoteIF" (http://localhost:8080/jaxrpc-vote/vote/endpoint/VoteIF)
>
> Thank you!
> Su

--
=============================================
There is only one me, I must live myself!
There is only one today, I must live itself!
=============================================
http://members.tripod.com/~apgupta/index.html
=============================================