Hi Nirmish, thanx a lot for your answer. I already tried your suggestion. Then I got an gateway time out. Do you know why? Thanx again! Bianca
-----Ursprüngliche Nachricht----- Von: Nirmish Dholakia [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 13. Dezember 2006 03:15 An: [email protected] Betreff: RE: How can I tell a Webservice Client to use the company's proxy? Hi Bianca, Just add your proxy server and port in system propertry as below. System.setProperty("http.proxyHost", "YOUR_PROXY_HOST"); System.setProperty("http.proxyPort", "YOUR_PROXY_HOST_PORT"); -----Original Message----- From: Bianca Schober [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 12, 2006 10:00 PM To: [email protected] Subject: How can I tell a Webservice Client to use the company's proxy? Hello, I am trying to use a Webservice like in the samples of Axis, see below. I am getting a connection time out and I think it's because of the firewall of my company. How can I configure the call so that it knows the name of the proxy we use? Thanx a lot for help!!! Cheers, Bianca package samples.userguide.example1; import org.apache.axis.client.Call; import org.apache.axis.client.Service; import javax.xml.namespace.QName; public class TestClient { public static void main(String [] args) { try { String endpoint = "http://nagoya.apache.org:5049/axis/services/echo"; Service service = new Service(); Call call = (Call) service.createCall(); call.setTargetEndpointAddress( new java.net.URL(endpoint) ); call.setOperationName(new QName("http://soapinterop.org/", "echoString") ); String ret = (String) call.invoke( new Object[] { "Hello!" } ); System.out.println("Sent 'Hello!', got '" + ret + "'"); } catch (Exception e) { System.err.println(e.toString()); } } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.15/579 - Release Date: 12/7/2006 1:31 PM -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.15/579 - Release Date: 12/7/2006 1:31 PM --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
