Fortunately for me my proxy doesn't require a username and password. However, at my last place of work they did require a username and password and it was a real pain in the ars. The credentials had to be encoded before passing to the proxy (base64). I could only figure out how to use httpclient to get it to work. I never got the jvm property settings approach to work. If I find some info on this, I'll be sure to post another reply.
zul wrote: > > Hi, > > I was just wandering if your http proxy uses a username and password to > provide authentication (because I didn't see the properties to set those > items in your config) ? > > Thanks, > zul > > > Steven wrote: >> >> >> I had the same problem with the rss-binding example. If you're behind a >> firewall, there is little to no information on how to configure >> ServiceMix examples to work in this situation. I had a brain fart this >> morning and remembered reading a web page somewhere that talked about >> setting httpProxy properties on the command line of the JVM. I found the >> following URL: >> >> http://developerlife.com/lessons/jvmfirewalltunelling/default.htm >> >> So then I moodified the BAT file in the bin directory to include the >> proxy properties: >> >> set DEFAULT_JAVA_OPTS=-server -Xmx512M >> -Dderby.system.home="%SERVICEMIX_HOME%\var" >> -Dderby.storage.fileSyncTransactionLog=true >> -Dcom.sun.management.jmxremote -Dhttp.proxyHost=(my proxy host) >> -Dhttp.proxyPort=3(my proxy port) >> >> >> That fixed it and the rss-binding example works flawlessly now. I hope >> this works for you too. >> >> >> >> >> zul wrote: >>> >>> Hi, >>> >>> It seems that running the http-binding example behind a http proxy >>> server have a connection time-out problem. Where do I set the http proxy >>> properties (such as proxyhost, proxyport, user, password) for connecting >>> to the external server ("http://64.124.140.30:9090/soap") and what is >>> the properties name or is it set (have to hardcode) at the sending >>> server program file ? >>> >>> Thankx. >>> >>> Regards, >>> Zul >>> >> >> > > -- View this message in context: http://www.nabble.com/Http-Binding-Example-Running-Behind-a-HTTP-Proxy-server-tf2270077.html#a6388856 Sent from the ServiceMix - User mailing list archive at Nabble.com.
