Hi Arun,
Thanks for your time.
If I did exactly as shown in the tutorial, it works well.
However, after I changed:
Call call = service.createCall();
call.setPortTypeName( servicePort ); // servicePort = new QName( "VoteIF" );
call.setOperationName( "addVote" );
to:
Call call = service.createCall( servicePort, "addVote" );
I got an exception:
Error occurred: service: QName(VoteService) does not contain port: QName(VoteIF)
By the way, call properties are set as shown in the tutorial.
Thanks again,
Su
On Mon, 4 Mar 2002 14:06:52 -0800, Arun Gupta <arun.gupta_at_SUN.COM> wrote:
>Hi Su,
>
>See inline.
>
>Su Zhang wrote:
>>
>> Hi Arun,
>>
>> Thank you very much for your reply. I appreciate it.
>>
>> I verified the endpoint and it seems the service contains the port "VoteIF":
>>
>> It supports the following ports: "VoteIF" (http://localhost:8080/jaxrpc-vote/vote/endpoint/VoteIF)
>>
>> Then in my DII client code, I set:
>>
>> QName servicePort = new QName( "http://vote.org/wsdl", "VoteIF" );
>
>Try
>
>QName servicePort = new QName( "VoteIF" );
>
>This is how it is mentioned in the tutorial as well.
>
>Also ensure that you are doing other setProperties as shown in the
>tutorial.
>
>Hope that helps.
>
>Regards,
>-Arun
>