Hi, I hope don´t bothering you and
explain the problem clearly. In my application I have several web service client
in axis2 and I have a proxy. Some web service clients have to interoperate with
external web services (through the proxy) and the others clients interacts with
internal web services (non proxy is needed). According to the axis2
documentation there are two forms of performing this task:
http://ws.apache.org/axis2/1_0/http-transport.html
For
me the best solution is to use the configuration file axis2.xml (for using in
all web service clients without the necessity of writing java code in each
client) but if I write the code inside the axis2.xml:
<transportSender
name="http"
class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
<parameter name="PROTOCOL"
locked="false">HTTP/1.0</parameter>
<parameter name="PROXY" proxy_host="proxy" proxy_port="8000"
locked="true">anonymous:anonymous:anonymous</parameter>
</transportSender>
all the web service clients
go out through the proxy and if I write the code:
<transportSender
name="http"
class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
<parameter name="PROTOCOL"
locked="false">HTTP/1.0</parameter>
</transportSender>
all the web service clients doesn´t use the
proxy.
In web service clients (prior to axis2)
I can put the line in the java virtual machine
arguments:
-Dhttp.proxyHost="proxy" -Dhttp.proxyPort="8000"
-Dhttp.nonProxyHosts="localhost"
and with this line I can use both web
service clients (external and internal).
And therefore I need a parameter like nonProxyHost or something similar for interoperating with internal web services in the axis2.xml configuration file.
Thanks in advance.
-----Mensaje original-----
De: Brecht Yperman [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 27 de septiembre de 2006 17:31
Para: [email protected]
Asunto: [Axis2] RE: ProxyHi,was there an answer to this question?I can't find it, and I desperately need a solution to get through the proxy server over here.Thanks a lot,Brecht
From: Doolittle, Todd [mailto:[EMAIL PROTECTED]
Sent: Tue 19/09/2006 23:06
To: [email protected]
Subject: Proxy
Im writing a client that must go out through a proxy. Axis 1 used the properties http.proxyHost and http.proxyPort. They could be set on the VM command line like this -Dhttp.proxyHost=uskihsvpcflow -Dhttp.proxyPort=80.
Axis 2 appears to ignore those properties. I figured out that hack the generated service stub up to set the proxy in the transport options, but this cant be the right way to do it. What is the right way to get Axis 2 to use a proxy?
Thanks!
Todd
This message, including any attachments, is the property of Sears Holdings Corporation and/or one of its subsidiaries. It is confidential and may contain proprietary or legally privileged information. If you are not the intended recipient, please delete it without reading the contents. Thank you.
<<attachment: winmail.dat>>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
