First: what are you talking about when you talk about a Proxy? 1. a real proxy server firewall OR 2. a home brown Axis2 Agent acting at one edge as a service to receive your client request and forwarding it as a client to your final service destination?
Second: Given you have a real Proxy Server / Firewall: Do you have access with your browser to the service to catch down the wsdl from your service? http://remotehost:8080/axis2/services/yourservice?wsdl If this does not work, make it work first: maybe you need to pass -Dhttp.proxyUser=youracount and -Dhttp.proxyPassword=yourpwd and maybe -Dhttp.auth.preference=Basic You may collect all that in a JAVA_OPTS environment variable. Josef -----Ursprüngliche Nachricht----- Von: ThekkayilJoy Thomas [mailto:thekkayil...@gmail.com] Gesendet: Mittwoch, 13. Juni 2012 10:31 An: java-user@axis.apache.org Betreff: Regarding axis connection through proxy Hi, I am using axis client to create a socket and send the soap requests. Now the scenario is like this. System 1 has no dns resolution. Data should go to Proxy 2 which is an http proxy. Proxy 2 will send the data to Web Service on System 3. [System 1 -> Proxy 2 -> Web Service on System 3 having host 'a.b.c.com'] Now when i send data from System 1 using axis client for a web service say https://a.b.c.com/abc/xyz. I am getting UnknownHostException. I tried using System.setProperty() and AxisClient.setProperty() with "http.proxyHost" and "http.proxyPort". But still this is the same. I am getting UnknownHostException as follows: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.net.UnknownHostException: a.b.c.com faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.net.UnknownHostException: a.b.c.com at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:850) at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1201) at java.net.InetAddress.getAllByName0(InetAddress.java:1154) at java.net.InetAddress.getAllByName(InetAddress.java:1084) at java.net.InetAddress.getAllByName(InetAddress.java:1020) at java.net.InetAddress.getByName(InetAddress.java:970) at com.rsa.sslj.x.M.createSocket(Unknown Source) at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:159) But when i put the ip address of a.b.c.com to the host file then it works fine. Please help me in this regard. Thanks, Thomas --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org