Works just fine (though I couldn't use anonymous, but "hardcoding" credentials in the axis2.xml file worked out nicely). Thanks (both of you ;-) )! Brecht
________________________________ From: Andres Rodriguez [mailto:[EMAIL PROTECTED] Sent: Wed 27/09/2006 18:00 To: [email protected] Subject: RE: [Axis2] RE: Proxy Hi Brecht, I have also a proxy and I research the way of creating the web service client. In the axis 2 documentation there are two possible solutions: See the in the URL: http://ws.apache.org/axis2/1_0/http-transport.html the part "Proxy and NTLM Authentication". For me the best solution is to use the configuration file axis2.xml however I find a problem that explain in one message posted yesterday (I attach the message content below). The solution for your problem is explained in this message (my proxy name is "proxy" and my proxy port is "8000" and the proxy autentication is not needed). I hope this help you. ********************************************************************************** Message content: 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: Proxy Hi, 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 I'm 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 can't 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.
<<winmail.dat>>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
