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
<route> <from uri="servlet:myapp?matchOnUriPrefix=true"/> <to uri="http://realserverhostname:8090/webservice?wsdl&bridgeEndpoint=true&throwExceptionOnFailure=false"/> </route> Ps: Of couse using browser I am able to open http://realserverhostname:8090/webservice?wsdl as wsdl file via camel route It only got something like below <html><body><p>Mocked Interfaces in project </p><ul><li><a href="/xxx?WSDL&interface=xxx">xxx</a></li><li><a href="/xxx?WSDL&interfacexxx">xxx</a></li></ul></p></body></html> Any hints or ideas?