Hi Adam Try to set the proxy settings on the client by following lines of code
final Client client = new Client(wsdlDef.getDefn(), null); client.setProperty(CommonsHttpMessageSender.HTTP_PROXY_HOST, proxyHost); client.setProperty(CommonsHttpMessageSender.HTTP_PROXY_PORT, proxyPort); System properties wont work as xfire internally uses socket communication and not the url connection class for making the web service request. -Amey -----Original Message----- From: Adam Bradley [mailto:[EMAIL PROTECTED] Sent: Thursday, December 20, 2007 5:32 PM To: [email protected] Subject: [xfire-user] Issue using XFire through a HTTP Proxy Firstly, thanks to the authors for writing such a fabulous tool! Unfortunately, I've just struck an issue where it would appear XFire cannot use a Proxy :| I've generated Client stubs from a WSDL using the following technique http://xfire.codehaus.org/Client+and+Server+Stub+Generation+from+WSDL with the following command "java -cp xfire-all-1.2.6.jar;lib\ant.jar;lib\jaxb-api-2.0.jar;lib\stax-api-1.0.1.jar; lib\jdom-1.0.jar;lib\jaxb-impl-2.0.1.jar;lib\jaxb-xjc-2.0.1.jar; lib\wstx-asl-3.2.0.jar;lib\commons-logging-1.0.4.jar;lib\activation-1.1.jar; lib\wsdl4j-1.6.1.jar;lib\XmlSchema-1.1.jar;lib\xfire-jsr181-api-1.0-M1.jar org.codehaus.xfire.gen.WsGen -wsdl .\examples\live\managedomain2.wsdl -o examples\live\src -overwrite true" I can use the generated classes happily until I try to access the Web Service through a Proxy. I currently set the Proxy values with public static final String HTTP_PROXY_HOST = "http.proxyHost"; public static final String HTTP_PROXY_PORT = "http.proxyPort"; ... System.getProperties().setProperty( HTTP_PROXY_HOST, "localhost"); System.getProperties().setProperty( HTTP_PROXY_PORT, "3128"); But it refuses to use the Proxy. Any ideas? Thanks in advance Adam --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
