users@jax-rpc.java.net

Re: Authentication

From: Arun Gupta <arun.gupta_at_Sun.COM>
Date: Mon, 01 Apr 2002 10:32:18 -0800

Hi Yaping,

You need to set -Dhttp.proxyHost and -Dhttp.proxyPort properties while
invoking your client. This will enable to the client to be able to talk
outside your firewall.

Please refer to
http://java.sun.com/docs/books/tutorial/networking/urls/_setProxy.html
for more details.

Thanks for your interest in JAX-RPC.

Regards,
-Arun

Yaping Xu wrote:

> Hi Arun:
>
> I just jioned this interest group, and I read the correspondence between you and Brian which is of importance to me.
>
> I need to implement a web service client that can reach out to a web service that's outside company firewall. So this client needs to go through the firewall proxy which requires user name and password authentication.
>
> What I need to know is that using this basic authentication by setting the two properties "http.auth.username" and "http.auth.password" , together with setting two system properties "HTTPProxyHost" "HTTPProxyPort", I can accomplish the goal of tunneling through the firewall?
>
> Any information you can provide will be greatly appreciated.
>
> Thank you very much.
>
> Yaping
>
>
>
> On Tue, 26 Feb 2002 15:10:03 -0800, Arun Gupta <arun.gupta_at_SUN.COM> wrote:
>
>
>>Hi Brian,
>>
>>java_xml_pack-winter-01-dev is compatible with JAX-RPC 0.5 version of
>>the spec. With this release, you need to use the properties as mentioned
>>in Table 8-1 on page 69 of 0.5 version of the spec.
>>
>>The corresponding properties are: "http.auth.username" and
>>"http.auth.password".
>>
>>Hope that helps.
>>
>>Thanks for your interest in JAX-RPC.
>>
>>Regards,
>>-Arun
>>
>>Brian McKeough wrote:
>>
>>>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/XMLMessageDispatcher.java [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/XMLMessageDispatcher.java [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
>>>provided.
>>>
>>>It isn't a classpath issue. In the same file
>>>(XMLMessageDispatcher.java) 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("javax.xml.rpc.security.auth.username", "test_username");
>>>stub._setProperty("javax.xml.rpc.security.auth.password", "test_password");
>>>
>>>XMLMessageDispatcher.java compiles, but running the client I get the
>>>following exception:
>>>
>>>java.lang.IllegalArgumentException: Call object does not recognize
>>>property: javax.xml.rpc.security.auth.username
>>> at com.sun.xml.rpc.client.StubBase._setProperty(StubBase.java:42)
>>> at
>>>com.mot.corp.fx.chart.client.XMLMessageDispatcher.main(XMLMessageDispatcher.java:28)
>>>
>>>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.
>>>
>>>Thanks
>>>
>>--
>>=============================================
>>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
>>=============================================
>>


--
=============================================
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
=============================================