Saminda

I agree its a mess right now. I like your suggestion. The other
alternative is simply to use a URL:

e.g.

<parameter name="ProxyURL"
value="http://paul:[EMAIL PROTECTED]:8080/"> which is easier to
remember.

I think in addition that by default Axis2 should also look at the
system properties - as described in 2316. Please don't forget this
option which is pretty important - especially on a client where there
may not be an editable axis2.xml (if its using the default).

Paul

On 6/14/07, Afkham Azeez <[EMAIL PROTECTED]> wrote:
The proposed solution definitely looks cleaner than the current
implementation. The only concern is that we will have to preserve backward
compatibility, hence the old way of configuring the proxy should also
continue to work.

-- Azeez


On 6/14/07, Saminda Abeyruwan <[EMAIL PROTECTED]> wrote:
> Devs,
>
> When considering the JIRAS 2316 & 2214 regarding client side proxy
configuration, IMHO how we configure the proxy through Axis2.xml is highly
inefficient and ugly .
>
> (Proxy can also  be configured using runtime with
HttpTransportProperties.ProxyProperties, IMO it is doing
exactly what we need).
>
> My concern is when we configure proxy through Axis2.xml in client side. At
the moment to configure the proxy we need to do the following
>
> <transportSender name="http"
class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
> <parameter name="PROTOCOL"
locked="false">HTTP/1.1</parameter>
>
>
> <parameter name="PROXY" proxy_host="proxy_host_name"
proxy_port="proxy_host_port"
locked="true>userName:domain:passWord</parameter>
> </transportSender>
>
>
> The above is very inefficient and it's hard to even follow.
>
> The other problem I see with this approch is that proxy is configured
under transport "http". What if the user only has "https" and need to use
proxy.
>
> Thus I propose to get rid of the parameter named "PROXY" completely and
introduce an independent toplevel parameter to Axis2.xml named "Proxy"
following the convention.
>
> Thus,
>
> it would be like,
>
> <parameter name="Proxy">
>       <Configuration>
>              <ProxyHost>example.org </ProxyHost>
>              <ProxyPort>5678</ProxyPort>
>              <ProxyUser>saminda\example</ProxyUser> //
user\domain
>              <ProxyPassword>ppp</ProxyPassword>
>       </Configuration>
> </parameter>
>
>
> At this way the senders may be http or https proxy configuration will
apply to both.
>
> I will update the Docs as proposed.
>
> What would be your consensus on prior ?
>
> Thank you
>
> Saminda
>
> --
> Saminda Abeyruwan
>
> Software Engineer
> WSO2 Inc. - www.wso2.org



--
Thanks
Afkham Azeez

http://www.wso2.org
GPG Fingerprint: 643F C2AF EB78 F886 40C9  B2A2 4AE2 C887 665E 0760


--
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to