users@jax-rpc.java.net

Dynamic Invocation Interface

From: Su Zhang <su_ba_ru_at_HOTMAIL.COM>
Date: Fri, 01 Mar 2002 07:00:45 -0700

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