Holger Szillat wrote:
Hey,

On 4/26/06, *Dan Diephouse* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    How are you setting the Proxy settings?


We tried to set the system-properties in the source-code and settings them via "-Dhttp.proxyHost=..." at the command-line.

    Have you looked at this page?
    http://xfire.codehaus.org/HTTP+Transport


Yes, we did. But how to apply this to the GeoIPClient-example? It's just this example, that's bothering us.

When I tried the example at home without a proxy, it built, but now it tries to access my MySQL-database. How's that?
Try this:
GeoIPServiceClient service = new GeoIPServiceClient();

GeoIPServiceSoap geoIPClient = service.getGeoIPServiceSoap();
Client client = ((XFireProxy) Proxy.getInvocationHandler(geoIPClient)).getClient(); client.setProperty(CommonsHttpMessageSender.HTTP_PROXY_HOST, "host"); client.setProperty(CommonsHttpMessageSender.HTTP_PROXY_PORT, "8080");

- Dan

--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com
http://netzooid.com/blog

Reply via email to