Re: Authentication

From: Brian McKeough <>
Date: Tue, 26 Feb 2002 10:45:26 -0600

This didn't compile:

> You can set the properties on your stub as:
> stub._setProperty(Stub.USERNAME_PROPERTY, "your-user-name");
> stub._setProperty(Stub.PASSWORD_PROPERTY, "your-password");

Here are the compile error messages:

com/mot/corp/fx/chart/client/ [28] cannot
resolve symbol
symbol : variable USERNAME_PROPERTY
location: interface javax.xml.rpc.Stub
             stub._setProperty(Stub.USERNAME_PROPERTY, "test_username");
com/mot/corp/fx/chart/client/ [29] cannot
resolve symbol
symbol : variable PASSWORD_PROPERTY
location: interface javax.xml.rpc.Stub
             stub._setProperty(Stub.PASSWORD_PROPERTY, "test_password");
2 errors
build_chart_xml_rpc.xml [111] Compile failed, messages should have been

It isn't a classpath issue. In the same file
( where I use Stub.USERNAME_PROPERTY and
Stub.PASSWORD_PROPERTY I have a class which implements the Stub
interface and it compiles.

I'm using java_xml_pack-winter-01-dev release of jax-rpc, could that be
the issue? The release notes say it "includes" support for basic
authentication, but perhaps it doesn't, or doesn't support these properties.

If I use the following

stub._setProperty("", "test_username");
stub._setProperty("", "test_password"); compiles, but running the client I get the
following exception:

java.lang.IllegalArgumentException: Call object does not recognize
         at com.sun.xml.rpc.client.StubBase._setProperty(

There is no Tomcat log file to send because there is never a request to
the server. The exception is thrown before the request can be made.