Hi Martin, I am using Axis 1.4
Best regards, Butsch ______________________________________________ Udo Butschinek, M.A. Projektmanagement, Kommunikation E-Mail [EMAIL PROTECTED] Internet www.zimmer19.de T +49 (0) 211. 93 88 54 84 F +49 (0) 211. 93 88 54 81 zimmer19 GbR Hendrik Becker Udo Butschinek Nadja Iven Markus Wendland Zimmerstr. 19 D-40215 Düsseldorf USt-IdNr.: DE814746933 -----Ursprüngliche Nachricht----- Von: Martin Gainty [mailto:[EMAIL PROTECTED] Gesendet: Mo 17.12.2007 20:20 An: [email protected] Betreff: Re: Sending SOAP Requests through an HTTP Proxy ... continued Udo- Which version axis are you implementing with?? I dont know your package name but this is the full declarationHttpTransportProperties.ProxyProperties proxyProperties After setting up all the proxyProperties ..the last step is to set the ProxyPropertiesfrom the example options is already declared we setProperty();options.setProperty(HttpConstants.PROXY, proxyProperties);Martin----- Original Message ----- From: "Udo Butschinek" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Monday, December 17, 2007 1:16 PM Subject: AW: Sending SOAP Requests through an HTTP Proxy ... continued First of all: Thanks for the reply. If I get this correctly, this "only" works with Axis2. What I currently need is a solution for the former Axis as the application I am using uses this one. So is there a solution for the Axis1? Thanks for help. Greetz, Butsch -----Ursprüngliche Nachricht----- Von: Antonio Manuel Muñiz Martín [mailto:[EMAIL PROTECTED] Gesendet: Do 13.12.2007 17:52 An: [email protected] Betreff: Re: Sending SOAP Requests through an HTTP Proxy ... continued You can configure proxy dinamically for each client independently using: ProxyProperties proxyProperties = new ProxyProperties(); proxyProperties.setDomain(" 102.12.12.12 <http://102.12.12.12> "); proxyProperties.setProxyPort(80); proxyProperties.setUserName("user"); proxyProperties.setPassWord("pass"); stub._getServiceClient().getOptions().setProperty( HTTPConstants.PROXY, proxyProperties); Bye. 2007/12/13, Udo Butschinek <[EMAIL PROTECTED]>: Hello alltogether, I am having a special problem. I am trying to send SOAP requests through an HTTP Proxy. For this purpose I set the "http.proxyHost" and "http.proxyPort" systemvariables by System.setProperty(). This basically works very fine. Now my application (SOAP-Client) has to switch between using a proxy for sending SOAP requests to a server on the internet and sending the same data to a server in the intranet. In the latter case no proxy is used. The problem is, that the Axis-Call-Class caches the data somewhere, so that always the first settings are used, so a switch is not possible. This has been documented and mentioned by other users before: http://marc.info/?l=axis-user&m=113698996700314&w=2 See solution seems to be here: http://wiki.apache.org/ws/FrontPage/Axis/AxisProxy There it sais: [QUOTE] If you need the ability to reset proxy settings during runtime, i.e. without stopping/starting the JVM (e.g. after the proxy settings dialog of your application was edited and confirmed by a user), it is sufficient to add a public static method to TransportClientPropertiesFactory, that is just clearing its TransportClientProperties-cache. If it is possible to override the default TransportClientPropertiesFactory, by providing your custom factory -Dorg.apache.axis.components.net.TransportClientPropertiesFactory=your.packa ge.YourTCPropsFactory this would be the preferable approach. [/QUOTE] To my somehow dull mind this means that I write a class MyTCPropsFactory. Register a System variable with key "org.apache.axis.components.net.TransportClientPropertiesFactory" where the value is MyTCPropsFactory. My factory has a static method called whatever (? say: clearCache()). Now the question: 1. What exactly has to be done in the public static method 2. How does Axis know which method to call and when is it called? After hours of googling I could not find any concrete example of code where it is shown how to clear the cache. I could not see another way than asking the apache-list directly. Any help would highly be appreciated. Yours desperately, Udo Butschinek ______________________________________________ Udo Butschinek, M.A. Projektmanagement, Kommunikation E-Mail [EMAIL PROTECTED] Internet www.zimmer19.de T +49 (0) 211. 93 88 54 84 F +49 (0) 211. 93 88 54 81 zimmer19 GbR Hendrik Becker Udo Butschinek Nadja Iven Markus Wendland Zimmerstr. 19 D-40215 Düsseldorf USt-IdNr.: DE814746933 ---------------------------------------------------------------------------- ---- > --------------------------------------------------------------------- > 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]
<<winmail.dat>>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
