Re: using camel as proxy to download wsdl file from remote webservice

2019-03-30 Thread Willem Jiang
em.Jiang [via Camel] > Date: Sat, Mar 30, 2019 at 10:46 AM > Subject: Re: using camel as proxy to download wsdl file from remote > webservice > To: W.Y > > > Hi, > > > It looks like you just want to proxy the request? using camel-http > component with bridgeEndp

Fwd: using camel as proxy to download wsdl file from remote webservice

2019-03-30 Thread Wang Yan
, no idea why. -- Forwarded message - From: Willem.Jiang [via Camel] Date: Sat, Mar 30, 2019 at 10:46 AM Subject: Re: using camel as proxy to download wsdl file from remote webservice To: W.Y Hi, It looks like you just want to proxy the request? using camel-http component with bridgeE

Re: using camel as proxy to download wsdl file from remote webservice

2019-03-30 Thread Willem Jiang
Hi, It looks like you just want to proxy the request? using camel-http component with bridgeEndpoint option is true should do the trick. Not sure if it relates to basic authentication on the remote host. Willem Jiang Twitter: willemjiang Weibo: 姜宁willem On Sat, Mar 30, 2019 at 2:05 PM Wang Ya

Fwd: using camel as proxy to download wsdl file from remote webservice

2019-03-29 Thread Wang Yan
I found the solution. it works for me, if you have better way, feel free to share private String proxy(String url) throws IOException { CredentialsProvider provider = new BasicCredentialsProvider(); UsernamePasswordCredentials credentials = new UsernamePasswordCredentials("USERNAME", "PASSWOR

using camel as proxy to download wsdl file from remote webservice

2019-03-29 Thread Wang Yan
I used below code as proxy to download wsdl file from remote webservice, but it does not work. only get html back instead of wsdl file http://realserverhostname:8090/webservice?wsdl&bridgeEndpoint=true&throwExceptionOnFailure=false"/> Ps: Of couse using browser I am able to o